// filedeleter.c -- use remove()function delete file #include <stdio.h> int main(void){ char filename[80]; printf("Enter the file name to delete: "); gets(filename); if(remove(filename) == 0) printf("The file %s has been deleted.\n", filename); else fprintf(stderr, "Error deleting the file %s.\n", filename); return 0; }