in reply to Reading from where I left off

You want tell, which on most sane operating systems returns a number that represents the number of bytes you are into the file (where the next read will start). Record the number, then use an absolute seek after you've reopened the file to get back to the same place.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

Replies are listed 'Best First'.
Re^2: Reading from where I left off
by VSarkiss (Monsignor) on Jan 12, 2006 at 17:51 UTC