title: Read large CSV file in C++(~4GB)
body: <p>I want to read and store a large CSV file into a map. I started by just reading the file and seeing how long it takes to process. This is my loop:</p>
  
  <pre><code>while(!gFile.eof()){
     gFile &gt;&gt; data;
  }
  </code></pre>
  
  <p>It is taking me ~35 mins to process the csv file that contains 35 million lines and six columns. Is there any way to speed this up? Pretty new to SO, so apologies if not asking correctly.</p>