C examples for File:File Operation
Delete a File
#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); }