[comp.lang.c] Deleting a file in a C program

gene@uokmax.uucp (Gene Johannsen) (06/13/90)

I need to delete a file in a C program, but remove() and unlink() just aren't 
working.  They each leave lost clusters behind.

I use TC 2.0, so could it be a problem in TC?

gene

dhesi%cirrusl@oliveb.ATC.olivetti.com (Rahul Dhesi) (06/15/90)

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@oliveb.ATC.olivetti.com>
UUCP:  oliveb!cirrusl!dhesi