-
April 18th, 2009, 09:17 PM
#1
[RESOLVED] Running java programs from the command prompt
Hello:
I need to run one of my projects from the command prompt. Asides from running it normally like after compiling it like:
Java package.MainClass
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.
Edwin
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|