Page 1 of 1

Open FILE INPUT STREAM

Posted: Thu Dec 11, 2003 10:35 pm
by samarth13
Hi.. i was lookin through the forums and cudn't find any answers on this..

i have a java program that takes in a text file as a command line arguement.. i wasn't sure where to specify this?

i tried the thing under preferences where u cud check the box to add command line arguements, but it comes w/a dollar sign and i tried specifying the file name after that.. and it didn't work..

any ideas on how i cud specify the file name as a command line arguement??

thx a lot..

Posted: Fri Dec 12, 2003 12:50 am
by s_reynisson
Run your program from command line promt:
java myProg InputFile
HTH