944,188 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 4769
  • Java RSS
Feb 1st, 2006
0

Reading in a .dat file from SSH shell command line

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
arvinp is offline Offline
1 posts
since Feb 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: String class help
Next Thread in Java Forum Timeline: palindrome





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC