#include <stdio.h>
#include <string.h>

int main () 
{
   int ret;

   ret = remove("/temp/test.txt");

   if(ret == 0) 
   {
      printf("File deleted successfully");
   } 
   else 
   {
      printf("Error: unable to delete the file");
   }
   
   return(0);
}


1,239 Comments

Leave a Reply

Avatar placeholder