title: Why can't I read a file with Code::Blocks C++?
body: <p>I've created a file in Code::Blocks called <code>datos.csv</code>, and I have this code:</p>
  
  <pre><code>std::ifstream file("datos.csv");
  if (file) {
      cout &lt;&lt; "Managed to read file successfully.";
  }else{
      cout &lt;&lt; "Unable to read file.";
  }
  </code></pre>
  
  <p>But it is unable to read the file.</p>
  
  <p>I tested the same code with TextMate, which can run C++ files, and it was indeed able to read the file, so I suppose there's something up with Code::Blocks. What am I missing?</p>
  
  <p>My file appears listed in "Others" in Code::Blocks' navigator.</p>