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.
Bookmarks