Keep in mind that as long as a file descriptor is open on a certain file, it is not removed. The program may still legally use the file to read or write from. Only when the last file descriptor is closed, does the file really disappear (unless you have cool retrieval software or some machines that support MRI.) Be careful- the file still may be in use after unlinking. This is most often done with temporary files.