title: need help to getin ifstream::open to open a file and getline from it
body: <p>I am just trying to open this file and use the getline function to read from the file but I cant seem to figure out why it is not working. I have stepped through it many times and the fileOpen variable is being loaded correctly with the file im trying to open, so Im unsure on why it wont open, to use getline with it. I would just like to be able to read through the file with getline, all of this is done in a recursive function to eventually read through all the files in directories. Let me know if you need more information on what exactly im doing.</p>
  
  <pre><code>string line;
  ifstream file;
  string fileOpen;
  bf::directory_iterator dirIter ( fullPath ); //fullPath is type bf::path, passed into the function
  fileOpen = (dirIter-&gt;path().filename());
  
  file.open(fileOpen);
  getline(file, line);
  </code></pre>