in reply to Re^4: Out of Memory - Line of TXT too large
in thread Out of Memory - Line of TXT too large
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.
|
|---|