删除文件

#include <stdio.h>
int main()
{ 
if(remove("1.txt")) 
printf("Could not delete the file &s \n","1.txt"); 
else printf("OK \n");
return 0;
}

 

转载于:https://www.cnblogs.com/tiandsp/p/7440796.html