Overwrite file using BufferedWriter
807598Sep 30 2006 — edited Oct 2 2006I am using BufferedWriter in my in following way:
BufferedWrite out = new BufferedWriter(new FileWriter(filename));
and then i'm writing to the file using out.write;
but everytime run the program, the text gets appended to the file, while I want overwrite the existing file and then write to it.
How do I do this??