C库函数 remove() C库 freopen() C库函数 rewind() C库函数 remove() #include <stdio.h> #include <string.h> int main () { int ret; FILE *fp; char filename[] = "file.txt"; fp = fopen(filename, "w"); fprintf(fp, "%s", "This is codingdict.com"); fclose(fp); ret = remove(filename); if(ret == 0) { printf("File deleted successfully"); } else { printf("Error: unable to delete the file"); } return(0); } C库 freopen() C库函数 rewind()