note 59534 rejected from function.unlink by sp
| From: | sp@php.net | Date: | Fri, 09 Dec 2005 14:46:47 +0000 |
| Subject: | note 59534 rejected from function.unlink by sp | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-99833@lists.php.net to get a copy of this message | ||
Note Submitter: brahadambal at yahoo dot com
----
How do you do the unlinking in C? i tried it as follows :
sprintf(file1, "%s\\%s.xml", drivename, filename);
if((unlink(file1)) != TRUE)
{
perror("Unlinking failed");
}
and it fails giving the following error!
Unlinking failed: File exists