I have executed some Linux commands using Java platform,
Now I want to store those commands description into a file.
How to do this using java?
I have executed some Linux commands using Java platform,
Now I want to store those commands description into a file.
How to do this using java?
If you're running your Java program from the shell, you can redirect it's output to a file using the '>' operator.
EXAMPLE# java MyProgram.class > output.txt