Vote count:
0
I tried to PrintStream to a text file for writing a bunch of output to a file.
But after the file is created, I would like to switch back to the standard output just to continue on with other processes, but I have no idea about doing that switch. Seems like I have to setOut to the standard console, but how do I do that?
Below is the code that I used to output to a text file. Any ideas?
PrintStream out = new PrintStream(fis);
System.setOut(out);
Thanks.
asked 1 min ago
How to change the standard
Aucun commentaire:
Enregistrer un commentaire