Delete a File - C File

C examples for File:File Operation

Description

Delete a File

Demo Code

#include <stdio.h>

int main()/*from  w w  w  .j a va2  s  .c  o m*/
{
     int m;
     m = remove("C:\\Code\\city.dat");
     if (m == 0)
         puts("Operation of deletion of file is successful.");
     if (m != 0)
         puts("Operation of deletion of file failed.");
     return(0);
}

Result


Related Tutorials