Delete file 2 : File Delete « File « C / ANSI-C






Delete file 2

#include <stdio.h>

int main(int argc, char *argv[])
{
  if(rename(argv[1], argv[2]) != 0) printf("Rename Error");

  return 0;
}

           
       








Related examples in the same category

1.Delete file
2. Delete a file: how to use remove
3.Delete a file