Quote Originally Posted by vermarajeev View Post
The I want to delete it again...The file doesnt get deleted...
Though I remove it after closing the stream as if.close();

The other interesting, if I go and delete the file from outside, I says 'The program is being used by external program and is busy"..I dont know why???
You can use Process Explorer to see whether that file is still opened or not.

But why do you write the unencrypted data to the disk? While your program is running, some other process might read it. It can also be recovered with some file recovery tool.