Deleting a file in a C program
Rahul Dhesi
dhesi%cirrusl at oliveb.ATC.olivetti.com
Fri Jun 15 09:23:54 AEST 1990
Gene Johannsen writes that he wants to delete a file from a C program,
but
remove() and unlink() just aren't working. They each leave lost
clusters behind.
This is almost certainly because (a) you are using MS-DOS and (b) you
are deleting a file that is open for writing. The solution is to
either use some other operating system or close the file first.
--
Rahul Dhesi <dhesi%cirrusl at oliveb.ATC.olivetti.com>
UUCP: oliveb!cirrusl!dhesi
More information about the Comp.lang.c
mailing list