|
Java™ by example!
|
|
|
How do I redirect System.out to a file?
Instantiate a PrintStream that streams to your file and use the System.setOut method. The same can be done for the input and error streams (setIn and setErr).
Further Information
Author of answer: Joris Van den Bogaert
Comments
Comments to this answer are only viewable by members. Login or become a member!
|
|
|
|
|