?
=?iso-8859-1?q?J=FCrgen_Gerstacker?=
Hi,
is there a garbage file in Java like /dev/null in UNIX?
I want temporarily throw away System.out outputs.
PrintStream out_orig=System.out;
System.setOut(new PrintStream(new File("trash.txt")));
....
System.setOut(out_orig);
The file "trash.txt" is created always, but I don't need it (and don't
want it). What could I do?
Juergen
is there a garbage file in Java like /dev/null in UNIX?
I want temporarily throw away System.out outputs.
PrintStream out_orig=System.out;
System.setOut(new PrintStream(new File("trash.txt")));
....
System.setOut(out_orig);
The file "trash.txt" is created always, but I don't need it (and don't
want it). What could I do?
Juergen