📅  最后修改于: 2022-03-11 14:52:15.558000             🧑  作者: Mango
PrintWriter writer = new PrintWriter("the-file-name.txt", "UTF-8");
writer.println("The first line");
writer.println("The second line");
writer.close();