• Post Reply Bookmark Topic Watch Topic
  • New Topic

reading in a file thru the command line

 
Michael Boyd
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to input a file to be hashed, but the file to be inputted has to be chosen in the command line, not the code. It has to be in the form "java IdCheck file001.pas", where IdCheck is the name of the java file and file001 is a pascal file to be hashed. All I need to know is how to input the file. Thanks a bunch.
 
Joe Ess
Bartender
Posts: 9361
11
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So what you really want to know is how to read command-line arguments?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!