What is a command to run a java program to run the program such that input is taken from a specified text file?
<p>I am running a java program which outputs correct for the manually provided inputs in command prompt. But the program fails on submitting on online competition site as they provide input in a text file. I need to know how I can provide the text file from which my program could read the input and compute the output. Basically i want to know the command which will cause input to taken from a specified text file.
Any help will be very useful!
Thanks in Advance!</p>

<p>-CNatka</p>
