| | |
Reading in a .dat file from SSH shell command line
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Feb 2006
Posts: 1
Reputation:
Solved Threads: 0
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
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
- Reading .dat file data into an array (C#)
- VB shell command counterpart in c++ (C++)
- Can we execute command line cmds from a php file?? (PHP)
- Reading .dat file (Visual Basic 4 / 5 / 6)
- What is the Command-Line Argument for??? (C++)
- using ifstream, counting elements of each line in a dat file (C++)
- command line arguments problem. (Shell Scripting)
- Making a .dat file (C++)
- Reading an input file as a class memeber function (C++)
Other Threads in the Java Forum
- Previous Thread: String class help
- Next Thread: palindrome
Views: 4043 | Replies: 0
| Thread Tools | Search this Thread |
Tag cloud for Java
911 addressbook android api append apple applet application arguments array arrays automation binary bluetooth character chat class classes client code component csv database draw eclipse error event exception file fractal ftp game givemetehcodez graphics gui helpwithhomework html ide image input integer j2me japplet java javaarraylist javaprojects jmf jni jpanel julia linked linux list loop map method methods mobile netbeans newbie number object objects oracle oriented panel print printf problem program programming project projects recursion replaydirector reporting researchinmotion return robot rotatetext scanner screen se server set size sms socket sort sql stream string swing test threads time transfer tree ubuntu windows





