📜  重写文件java代码示例

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

代码示例1
Writer fileWriter = new FileWriter("c:\\data\\output.txt", true);  //appends to file

Writer fileWriter = new FileWriter("c:\\data\\output.txt", false); //overwrites file