I would like to read a large file that has a structure similar to the following:
John 10 department
Hello 14 kjezlkjzlkj
jhfekh 144 lkjzlkjrzlj
........
The problem is I want to minimize the number of I/O access to the disk while reading this file in C++. Is there a way to access the file on Disk, then read a large portion of the file to memory ( that 1 disk access), then read a second large portion of the file ( 2nd disk access...Etc)?
Any help will be appreciated.