Categories:
.NET (961)
C (387)
C++ (185)
CSS (84)
DBA (8)
General (31)
HTML (48)
Java (641)
JavaScript (220)
JSP (109)
JUnit (31)
MySQL (297)
Networking (10)
Oracle (562)
Perl (48)
Perl (9)
PHP (259)
PL/SQL (140)
RSS (51)
Software QA (28)
SQL Server (5)
Struts (20)
Unix (2)
Windows (3)
XHTML (199)
XML (59)
Other Resources:
System.setOut() - Setting Standard Console Output to
How could Java classes direct program messages to the system console, but error messages, say to a file?
✍: FYIcenter
The class System has a variable out that represents the standard output, and the variable err that represents the standard error device. By default, they both connected to the system console. But you can change them to files as shown in the this example:
Stream st = new Stream(new FileOutputStream("output.txt")); System.setOut(st);
2007-03-03, 7842👍, 0💬
Popular Posts:
Can you explain different software development life cycles -part II? Water Fall Model This is the ol...
Which bit wise operator is suitable for checking whether a particular bit is on or off? The bitwise ...
Can you explain project life cycle ? Figure :- 12.2 Life cycle of a project There are five stages of...
How To Get the Last ID Assigned by MySQL? - MySQL FAQs - Managing Tables and Running Queries with PH...
How To Download and install PSP Evaluation? - PSP Tutorials - Fading Images to Background Colors wit...