195.232.49.249 writes:
Hello there,
is there anybody who can help me with the following problem ?
I need to write a String from the command prompt into a file.
Example: java PrintString hello
- a specific file should now contain the
String "hello"
Thank you in advance
Mike
148.5.110.71 writes:
Mike, Command line aguments are passed to a Java app. as they are in C, public static void main(String args[]), except that args[0] is the first argument. You can then write args[0] out to the disired file. If you need help with that as well let me know.
Scott_M2