title: Issue opening file with ifstream in qt
body: <p>my partner wrote a bunch of code for one of my projects in a text editor, when i run the code it works perfectly.....
  now i have copy and pasted all the code into qt creator, and im having an issue</p>
  
  <pre><code> stringstream ss;
              string line;
              ifstream myfile;
              myfile.open("Instructors.txt");
              if (myfile.is_open()){
                  while (getline(myfile,line)){
                      ss &lt;&lt; line &lt;&lt; ", ";
                  }
                  myfile.close();
              }
              else cout &lt;&lt; "bad open" &lt;&lt; endl;
  </code></pre>
  
  <p>above is the part fo my code that is having the issue, i can assure you all Instructors.txt is indeed in in the correct file, but everytime our code reaches this point imstead of opening the file i get thrown to the else "bad open" why would this be?</p>