Heya
Here is two solutions:
(1)
Try reading X thousand lines at a time, save where you ended off, save X to a temp file, start reading again from i + X thousand lines for a further X + thousand lines, store in another temp file, and so on till the e.o.f. is reached. Write all the temp file data to a list buffer and delete temp files. I know that this is maybe not the best solution bad am sure it will work.
(2)
Otherwise, maybe how you read the text file is incorrect...
Check out this link below for a read from textfile function:
how to extract data from text file??[
^]
Goodluck,