title: Working with file in Eclipse
body: <p>I have instruction to run program in command line, for example:</p>
  
  <pre><code>java SetTest &lt; alice30.txt
  </code></pre>
  
  <p>I wonder how to do this in Eclipse. I tried to put this in Run Configuration like this:</p>
  
  <p><img src="https://i.stack.imgur.com/JDZBm.png" alt="enter image description here"></p>
  
  <p>Another thing I don't know is where to put this file (alice30.txt). Is this in root of project or in src folder where source files are located?</p>
  
  <p>I know these are beginner questions but I am stuck and need help.</p>
  
  <p><strong>EDIT</strong>:
  As @Kane suggested I passed File and opened stream.
  Instead of:</p>
  
  <pre><code>Scanner in = new Scanner(System.in);
  </code></pre>
  
  <p>I now use:</p>
  
  <pre><code>Scanner in = new Scanner(new File("alice30.txt"));
  </code></pre>