print in command line?
I have this Java program, in command line, i want to print a hard copy of the output, is it possible?
I have this Java program, in command line, i want to print a hard copy of the output, is it possible?
I know, that's a bit sarcastic, and probably more than a bit so. Well, put the output to a textfile, rather than the console and print that.
If you want to see it and print it (without manually doing anything, then extend PrintStream and override it's print method to output to both a textfile and the console, then at the end of the program (if it has a logical end, or wherever it "aborts"), print, then remove the textfile.