title: C++: Using ifstream with getline();
body: <p>Check this program</p>
  
  <pre><code>ifstream filein("Hey.txt");
  filein.getline(line,99);
  cout&lt;&lt;line&lt;&lt;endl;
  filein.getline(line,99);
  cout&lt;&lt;line&lt;&lt;endl;
  filein.close();
  </code></pre>
  
  <p>The file Hey.txt has alot of characters in it. Well over a 1000</p>
  
  <p>But my question is
  Why in the second time i try to print line. It doesnt get print?</p>