title: How to reduce the number of I/O disk accesses while reading/writing a large file in C++
body: <p>I would like to read a large file that has a structure similar to the following:</p>
  
  <pre><code>        John  10  department
          Hello 14   kjezlkjzlkj
          jhfekh 144 lkjzlkjrzlj
          ........
  </code></pre>
  
  <p>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)?</p>
  
  <p>Any help will be appreciated.</p>