A way to bookmark a long text?

faeve's icon

Hello,
I am writing a patch for an installation, where Max downloads a text file, saves it locally, opens it and reads each line (there are many). Every day at specific hours, the computer running Max is switched off.
I would like Max to remember/bookmark the last line it read so that it can start from the next one.
Which would be the best way/approach?
Thank you!

Source Audio's icon

Link file name and last read line number and store it
for next "reading" as text file or coll or whatever,
and load it on next start.
So the message to text object could be
read "File to read.txt", line 22
I would personally prefer coll for that, in favor of text object.

faeve's icon

Great idea! Thank you!
Yep, I totally forgot about coll
:)