Rhian
27th September 2016, 23:11
I want to read a specific line from a textfile and save the position of the line.
In a next step I want to start the loop directly at the saved position (with seek).
With this I want to avoid to start the loop at the beginning of the textfile.
Is it possible to do this with file.pos() ?
It seems that pos always gives me the end of file position not the position of the last readLine.
file.readLine();
file.pos();
Is it also possible to have a pointer to the position of the last readLine?
Thanks for help.
In a next step I want to start the loop directly at the saved position (with seek).
With this I want to avoid to start the loop at the beginning of the textfile.
Is it possible to do this with file.pos() ?
It seems that pos always gives me the end of file position not the position of the last readLine.
file.readLine();
file.pos();
Is it also possible to have a pointer to the position of the last readLine?
Thanks for help.