How can I save a
string in a text file ?
My way :
.
.
.
BufferedWriter file;
String s = new String("Test");
file = new BufferedWriter(new FileWriter("textfile.txt"));
file.write(s);
.
.
.
does'nt work !
(I wrote this sourcecode without the book, where I read that. It is possible that there are some mistakes.)
I wrote that as an
applet, but the file was not created.
HELP PLEASE !!