Java: Input a file to a process
<p>I am writing a simple Java project call Robot. The Robot can accept a config file from the command prompt (If there is not file, the robot will use the default config) by:</p>

<pre><code>java Robot &lt; config.txt
</code></pre>

<p>Does anyone know how I can read the redirect input from the command prompt in java?</p>
