954,554 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Reading in a .dat file from SSH shell command line

Hey guys, I'm trying to write a code that reads in a .dat file from the SSH shell command line.

example: java Prog1 xxxx

so from the shell command line i want it to run Prog1 then read in the contents of the xxxx file

All the code I look at online shows me how to write the code using an existing file... I want to write the code taking in an entirly new file from the command line... after this I simply just want to print out the contents of the dat file after is has read it in....

example:
this is all from the SSH shell command line

java Prog1 xxx.dat
"contents of the xxx.dat go here"

thanks for the help

arvinp
Newbie Poster
1 post since Feb 2006
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You