remove: delete file by *fname
//Header file: #include <stdio.h>
//Declaration: int remove(const char *fname);
//Return: returns zero on success or nonzero on error.
#include <stdio.h>
int main(int argc, char *argv[])
{
if(remove("test"))
printf("Remove Error");
return 0;
}
Related examples in the same category