title: Can't Open .csv File with C++
body: <p>I am trying to write a code that will open a .csv file. However, the actual file does not open. Instead it, jumps straight to the else statement at the end. I have no clue why because this should work. This is including the fstream library.</p>
  
  <p><a href="https://i.stack.imgur.com/WPVsB.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WPVsB.jpg" alt="enter image description here"></a></p>
  
  <pre><code>ifstream ycratel; //create the stream object
  
  ycratel.open("YC Rate Levels.csv");
  
  if (ycratel.is_open())
  {
      while (ycratel.good())
      {
          //random stuff here
      }
  
      ycratel.close();
  
  }
  
  else cout &lt;&lt; "Unable to open file.";
  </code></pre>