// public static void main(String[] args) throws Exception {
// String str = "aaaaaaaaaaaaaaaaaaa";
// PrintStream out = new PrintStream("f:/test.txt");
// System.setOut(out);
// System.out.println(str);
// }
system.out的代码打印到txt文件中