title: Redirect stdin from a file in eclipse with run configuration
body: <p>There used to be a <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=155411" rel="nofollow">bug</a> in eclipse that prevented a run configuration from redirecting a file to stdin but supposedly it's fixed.  However, I can't find any documentation that tells how to do it now that it's fixed.</p>
  
  <p>It's easy to misunderstand what I'm trying to accomplish so let me be clear.  I'm not looking for code that will read a file.  I'm not looking to pass a filename as an arg.  I'm not looking to redirect stdout or stderr.  </p>
  
  <p>I have existing code that takes normal standard input without knowing if it's coming from the keyboard or a file:</p>
  
  <pre><code>scanner = new Scanner(System.in);
  number = scanner.nextInt();
  </code></pre>
  
  <p>Redirecting input from a file can be done at a command prompt of course but I'm trying to get eclipse configured to do it automatically at the touch of a ctrl-F11 keystroke.</p>
  
  <p>Fair warning, I've done a number of web searches trying to answer this myself and many of them claim the answer is in <code>Run Configuration</code> | <code>Common</code> but they end up only working for stdout.</p>