in reply to Re: How do I backtrack while reading a file line-by-line?
in thread How do I backtrack while reading a file line-by-line?
Keeping your own buffer also has the advantage of working on something that's not seekable (e.g. a network socket, or a pipe from another program).
|
|---|