标签:.com second sys clip lips target get nts line
https://coderanch.com/t/278299/java/Writing-output-console-file-system
File file = new File("test.txt");
FileOutputStream fis = new FileOutputStream(file);
PrintStream out = new PrintStream(fis);
System.setOut(out);
System.out.println("First Line");
System.out.println("Second Line");
System.out.println("Third Line");
System.out.println("Fourth Line");
How to save console output to a file in Eclipse
标签:.com second sys clip lips target get nts line
原文地址:http://www.cnblogs.com/cdsj/p/6024947.html