in reply to How do I backtrack while reading a file line-by-line?

tell to save your spot, seek to return to it.
  • Comment on Re: How do I backtrack while reading a file line-by-line?

Replies are listed 'Best First'.
Re^2: How do I backtrack while reading a file line-by-line?
by mdunnbass (Monk) on Oct 18, 2006 at 20:12 UTC
    Thanks ikegami, I hadn't seen tell or seek previously, and once I read up on them, they proved to be exactly what I was looking for.

    That subroutine works beautifully now!

    Matt