📜  如何在java代码示例中覆盖文本文件

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

代码示例1
// contructor           FileWriter(path      , append);
FileWriter writer = new FileWriter("file.txt", false);
writer.write("content");
writer.close();