After I have created a new FileChannel I got some information out, and now I want to delete the file. I tried creating a new file with the filename and then doing a .delete but that did not seem to be working. Any suggestions?
posted 9 years ago
You need to make sure the FileChannel is closed before you can delete the file it's connected to. Along with any other streams etc. which relate to that file.