标签:new 文件 清空 class log文件 writer file bsp div
清空test.log文件所有内容
File log = new File("c:\\test\\test.log"); FileWriter fileWriter =new FileWriter(log); fileWriter.write(""); fileWriter.flush(); fileWriter.close();
标签:new 文件 清空 class log文件 writer file bsp div
原文地址:https://www.cnblogs.com/Soy-technology/p/11844213.html