So i have a gui, designed using QT, c++. I have large amount of data in a text file that I would like to read in this fashion:
load first 50 lines, when the user scrolls down load next 50 lines and so one. When the user scrolls up load previous 50 lines.
Thank you.
The easiest solution would be to load the file into memory and manipulate it from there:
If the file is way to large.
Then you need to build an index of the file that tells you exactly where each line starts.
Once you have your index. You can jump around the file and read any particular line.