📜  到底如何在java中写入txt文件-Java代码示例

📅  最后修改于: 2022-03-11 14:52:45.348000             🧑  作者: Mango

代码示例2
PrintWriter writer = new PrintWriter("faylismi.txt", "UTF-8");
writer.println("The first line");
writer.println("The second line");
writer.close();