title: how to access a text file while debugging with eclipse CDT
body: <p>I am writing this code to access a file in eclipse CDT</p>
  
  <pre><code>ifstream inFile;
  ofstream outFile;
  string next;
  
  inFile.open("input.txt");
  if (inFile.fail())
  {
      cout &lt;&lt; "\nCould not open input.txt";
      exit(1);
  
  }
  </code></pre>
  
  <p>the problem is when I try to debug my app or run my app from inside eclipse it cannot find the input.txt file. When I run my app from the console it works fine and opens the file. I need to debug the app but can't because for some reason the eclipse ide cannot find the file.</p>
  
  <p>Where should I put the file?</p>