Deleting Files in C

shape
shape
shape
shape
shape
shape
shape
shape

In this short post, I’ll show you how to delete a file using the C language.

To delete a file we use the delete(“file_name”) function. In the example below, the program will delete the file masterdaweb.txt:


#include 

int main()
{
delete("masterdaweb.txt");
return 0;
 } 

Leave a Reply

Your email address will not be published. Required fields are marked *

Latest news

Latest news directly from our blog.