devxlogo

Deleting a File

Deleting a File

The standard function remove() deletes a file. It takes one argument of type const char * which is the name of the file to be deleted. You can provide a full path as a filename. On success, remove() returns 0. A non-zero return code indicates an error.

 include int main(){ char name[80]; //

devx-admin

Share the Post: