title: is_open returns true, but getline only returns empty strings
body: <p>I am attempting to read from a .csv file in c++. After calling myfile.open(file), is_open returns true, but getline is only returning empty strings. </p>
  
  <p>I have attempted using vectors to read the lines and then writing the vector data to a variable to read, but that has also returned only empty strings. </p>
  
  <pre><code>std::ifstream csvFile;
  std::string line = "!", temp= "...";
  
  csvFile.open("file.csv");
  if(csvFile.is_open()) {
      std::cout &lt;&lt; "open\n";
      std::cout &lt;&lt; line &lt;&lt; "\n";
      if(getline(csvFile, line)) {
          std:: cout &lt;&lt; line &lt;&lt; "\n";
      } else {
          std::cout &lt;&lt; temp &lt;&lt; "\n";
      }
  }
  else {
      std:: cout &lt;&lt; "not opening\n";
  }
  std:: cout &lt;&lt; line;
  </code></pre>
  
  <p>My output is as follows after running.</p>
  
  <pre><code>[ctest] open
  [ctest] !
  [ctest] ...
  [ctest] 
  </code></pre>
  
  <p>As shown, the getline() return only an empty string, although the file itself is not empty.</p>
  
  <p>These are the first 20 or so lines of the csv file, and I have made sure that the file is in the current working directory.</p>
  
  <p>Alpha002</p>
  
  <p>16:55:54 13/6/2019</p>
  
  <p>428,1.61,-1.31,-0.13,0,0</p>
  
  <p>448,1.61,-1.47,-0.13,0,0</p>
  
  <p>468,1.68,-1.07,-0.44,0,0</p>
  
  <p>488,1.61,-1.39,-0.76,0,0</p>
  
  <p>508,1.61,-1.47,-0.68,0,0</p>
  
  <p>3528,1.61,-1.55,-0.36,0,0</p>
  
  <p>3548,1.61,-1.31,-0.28,0,0</p>
  
  <p>3568,1.68,-1.15,-0.36,0,0</p>
  
  <p>3588,1.68,-1.63,-0.76,0,0</p>
  
  <p>3608,1.68,-0.76,-0.68,0,0</p>
  
  <p>3628,1.68,-1.15,-0.21,0,0</p>
  
  <p>3648,1.68,-0.76,-0.28,0,0</p>
  
  <p>3668,1.68,-1.39,-0.13,0,0</p>
  
  <p>3688,1.68,-1.07,-0.21,0,0</p>
  
  <p>3708,1.61,-1.47,0.03,0,0</p>
  
  <p>I am not sure how to proceed from here, as i cannot find any issues apart from that, any advice is appreciated!</p>