Find And Delete Files C

[Solved] Find And Delete Files C | Csharp - Code Explorer | yomemimo.com
Question : delete file c

Answered by : funny-fox-vlalkmceq3nr

/* remove example: remove myfile.txt */
#include <stdio.h>
int main ()
{ if( remove( "myfile.txt" ) != 0 ) perror( "Error deleting file" ); else puts( "File successfully deleted" ); return 0;
}

Source : https://www.cplusplus.com/reference/cstdio/remove/ | Last Update : Sun, 27 Jun 21

Answers related to find and delete files c

Code Explorer Popular Question For Csharp