java的system.out輸出保存到特定文件中

java的system.out輸出保存到特定文件中 String path = "G:/2/3/SystemOut.log"; FileOutputStream puts = new FileOutputStream(path,true); PrintStream out = new PrintStream(puts); System.setOut(out);
相關文章
相關標籤/搜索