No - you don't know where a line ends until you have read everything up to the newline character.
You can speed up the process by remembering the offsets in the file where a new line begins (tell), or by making an educated guess where the line could end, and seeking to there and reading data from there.
In reply to Re^5: Out of Memory - Line of TXT too large
by Corion
in thread Out of Memory - Line of TXT too large
by MajinMalak
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |