Added By: Editorial Staff | Last Updated:
In this program, we are going to share a C program to delete a file from directory. If you are a beginner and want to start learning the C programming, then keep your close attention in this tutorial as I am going to share a C program to delete a file from directory.
We have designed this program for beginners for learning purpose. Copy below c program and execute it with c compiler to see the output of the program.
if (remove("test-file.txt") == 0)
printf("Unable to delete the file");
Editorial Staff at FreeWebMentor is a team of professional developers leads by Prem Tiwari View all posts by Editorial Staff