I wrote a program to write in a file...

```
package iofile;
import java.io.*;
public class WriteFile {

    public static void main(String[] args) {
        String s;
        File file=new File("C:\\Users\\Rajesh\\oacert\\Learn\\src\\iofile\\raj.txt");

        InputStreamReader isr=new InputStreamReader(System.in);
        BufferedReader br=new BufferedReader(isr);
        try{
        PrintWriter pr=new PrintWriter(new BufferedWriter(new FileWriter(file,true)));
        System.out.println("enter to write in a file...");
        s=br.readLine();
        while(s!=null){
            pr.println(s);
            s=br.readLine();
        }
        pr.close();
        }
        catch(Exception e){

        }

    }

}

```

But it's unable to write anything in raj.txt. What's causing this? Thanks in Advance
NOTE: raj.txt exists in the mentioned directory...