title: Printwriter destination issue
body: <p>I am successfully writing strings to a text file with the PrintWriter, and by default the output text file is written to the directory of the Eclipse project I'm working on.</p>
  
  <p>But my Eclipse project has a specific folder called Resources that I want the text file to be written to:</p>
  
  <p>My code is:</p>
  
  <pre><code>protected void saveCommandsToFile() throws FileNotFoundException, IOException {
      PrintWriter out = new PrintWriter("commands.txt");
      int listsize = list.getModel().getSize();
      for (int i=0; i&lt;listsize; i++){
          Object item = list.getModel().getElementAt(i);
          String command = (String)item;
          System.out.println(command);    //use console output for comparison
          out.println(command);
      }
      out.close();
  }
  </code></pre>
  
  <p>If I change the line to:</p>
  
  <pre><code>    PrintWriter out = new PrintWriter("/Resources/commands.txt");
  </code></pre>
  
  <p>The FileNotFoundException is being thrown. How do I get around this? Thank you!</p>