in reply to Re^2: How do I backtrack while reading a file line-by-line?
in thread How do I backtrack while reading a file line-by-line?
I didn't find that misleading. It says to me that only chunks of the file data are loaded into memory. In fact, I assumed that it loaded a full index of the lines at instantiation.
If the OP knows about how much data an average (or the largest) backtrack is, the read cache could optimized for memory usage/speed. Plus you get a layer of abstraction to hide any nastiness.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: How do I backtrack while reading a file line-by-line?
by ikegami (Patriarch) on Oct 14, 2006 at 07:26 UTC |