Unless the lines are fixed length or you cache line start indexes, you can't.
If the file is growing then it may be worth keeping a second file that caches line start indexes every few hundred lines. Should be low overhead and easy to implement.
In reply to Re: Handling large files
by GrandFather
in thread Handling large files
by tsk1979
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |