title: Getline is returning nothing but blank
body: <p>I am trying to open many files in a row. The file names are all stored in a vector, which is passed to my function. This is just a simple test to make sure that everything is working. If it works, then I will need to pushback whatever the file holds into another vector.</p>
  
  <pre><code>void readfile(vector&lt;string&gt; &amp;filename)
  {
      string temp;
      ifstream infile(filename[2].c_str());
      getline (infile, temp);
      cout &lt;&lt; temp &lt;&lt; endl;
  }
  </code></pre>
  
  <p>This is simply outputting a blank line, although the text file holds about a paragraph of information. I have not used File I/O in a while, so I am a little rusty. Any help is appreciated. </p>
  
  <p>Edit: You all have been a great help, one more thing, I need to pass them without periods, or spaces. Basically just a string of chars.</p>