|
-
September 29th, 2009, 11:53 AM
#1
Run program with batch file
I know when using C++ you can do the following to read in a list of commands from a text file, run them against the program, and output the results to a text file:
ExampleProg < test.txt > results.txt
Can anyone tell me how to get the same result, but using a Java program. I do most programming in an IDE, so I'm not all that great with knowing what commands need to be done at the command line.
Is it something like the following?
java ExampleProg < test.txt > results.txt
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
|