cara menimpa file teks di java

// contructor           FileWriter(path      , append);
FileWriter writer = new FileWriter("file.txt", false);
writer.write("content");
writer.close();
Pixel Freak