title: IntelliJ IDEA: Run java with args from external file
body: <p>I want to run a java class with args supplied as a file.</p>
  
  <p>On shell, i can do</p>
  
  <pre><code>    java SomeClass &lt; 1.txt
  </code></pre>
  
  <p>Is there any equivalent for this on intellij and/or gradle.</p>
  
  <p>I tried on IntelliJ IDEA -> edit configurations. But, the argument is not getting passed.</p>