- import java.io.*;
- class File1
- {
- public static void main(String A[])
- {
- try
- {
- BufferedWriter fout=new BufferedWriter(new FileWriter("d:\\Test.txt",true));
- fout.write('A');
- }
- catch(Exception e)
- {
- System.err.println(e);
- }
- }
- }
The file gets created but it's an empty(0 byte)file.
The character 'A' should be there. Why it's not there????



