title: Unable to open file in C++ even after specifying full path
body: <p>My next step is to try getcwd(), but I'm wondering if there is an error in my code that I'm not seeing. student_status.txt is in the right folder, and I have tried the full file path.</p>
  
  <p>Also, the code does compile and notify me that the file didn't open.</p>
  
  <p>Any ideas? </p>
  
  <pre><code> using namespace tenPoint;
   int main()
   {
      string name;
      char grade;
      double average;
  
      cout &lt;&lt; "test";
  
      ifstream fileRead;
      fileRead.open("student_status.txt");
      if (fileRead.is_open())
      {
          while (!fileRead.eof())
          {
              getline(fileRead, name);
              fileRead &gt;&gt; average;
              fileRead.ignore();
  
              switch (finalGrade)
              {
              case F:
                  grade = 'F';
              case D:
                  grade = 'D';
              case C:
                  grade = 'C';
              case B:
                  grade = 'B';
              case A:
                  grade = 'A';
              }
  
              cout &lt;&lt; name &lt;&lt; " " &lt;&lt; average &lt;&lt; " " &lt;&lt; finalGrade &lt;&lt; endl;
          }
          fileRead.close();
      }
      else
          cout &lt;&lt; "file wasn't open";
   }
  </code></pre>