删除文件


#include <iostream>

#include <Windows.h>

#include <fstream>

#include <sstream>

using namespace std;

int main()
{

FILE * fp;


int flag = 0;
char * tmp;
static char tmpstr[1024];

if ((fp = fopen("temp.txt", "r")) == NULL)
{
cout << "temp.txt doesn‘t exist" << endl;

}
else
{
fclose(fp);

system("DEL /f temp.txt");
cout <<"Delete info.txt and temp.txt Sucessful !" <<endl;
system("pause");

}

return 0;
}

删除文件

上一篇:Ceph 存储集群 - 搭建存储集群


下一篇:Slope trick优化dp