📜  在java代码示例中附加到文件

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

代码示例2
File file = new File("append.txt");
FileWriter fr = new FileWriter(file, true);
BufferedWriter br = new BufferedWriter(fr);
PrintWriter pr = new PrintWriter(br);
pr.println("data");
pr.close();
br.close();
fr.close();