read a line in a text file without loading entire file
read a line in a text file without loading entire file
Is there a way with purebasic to read a specific line of a file without reading the whole file? Seek and read the part of the file with a specific line?
Re: read a line in a text file without loading entire file
Of course. But it is slower.
Simply use ReadString() for n times.
Fast it is only possible if all lines have the same length.
Then you can use FileSeek() to jump the right location.
Simply use ReadString() for n times.
Fast it is only possible if all lines have the same length.
Then you can use FileSeek() to jump the right location.
Re: read a line in a text file without loading entire file
thank you
yes each line is same memory size so fileseek is useful.
yes each line is same memory size so fileseek is useful.