i want to write data into text file using textfield in small application.
and everytime i write, it keeps rewrite the data in text file.
first time i write : hello how are you
2nd time i write : my name is nick
----
why "my name is nick" will replace "hello how are you" in the text file when i open it?
which method to enter next new line in text file? or the class i used was wrong one? here is my code
String text= textfield.getText();
BufferedWriter bw= new BufferedWriter(new FileWriter("a.txt");
bw.write(text);
bw.close()
[ August 25, 2006: Message edited by: Nicky Eng ]