[SOLVED] Running java programs from the command prompt
I need to run one of my projects from the command prompt. Asides from running it normally like after compiling it like:
I need to run it like:
Java package.MainClass fileName.txt
What does that means? I mean, what can I do with that .txt? I'm supposed to use that text to recover data, but I just don't understand how can I do that.
The last one is:
Java package.MainClass < fileName.txt
That one is easy, the only thing it does is read the command from that fileName instead of the keyboard. Still I don't understand what to do with the second one...
I need help, please. Link to where I can read about it would be very helpful, or any examples, whatever... any help is appreciated.