| Author |
Command line arguments via (string[] args)
|
Matt Moore
Greenhorn
Joined: Dec 14, 2004
Posts: 2
|
|
Hi I've been told that you can pass a text file to be inputted via the (String[] args) part of the main method. eg. java someprogram someinput.txt Well thats what I'd like to do, how do I do it? thanks, Matt
|
LARP - www.pathfinderlarp.org.uk
|
 |
Mike Gershman
Ranch Hand
Joined: Mar 13, 2004
Posts: 1272
|
|
This assumes the file is in the same directory as someprogram, otherwise you have to specify the path.
|
Mike Gershman
SCJP 1.4, SCWCD in process
|
 |
 |
|
|
subject: Command line arguments via (string[] args)
|
|
|