I use a FileWriter and a BufferWriter to write in a file. The file \"test.txt\" is created but nothing is written inside.
The file should be written in the ActionEve
Follow these Sequence to successfully write to a file....
File f = new File("d:\\test.txt");
FileWriter fw = new FileWriter(f);
BufferedWriter bw = new BufferedWriter(fw);
bw.write("Hello........"); // Writing to the file
bw.close(); // Close the BufferedWriter
fw.close(); // Close the FileWriter
Closing of Streams are important....