文件的写

std::string outresult;

FILE *fp = NULL;
fp = fopen("d:\\1.dat", "wb");
if (fp == NULL)
{
      return 0;
}
fwrite(outresult.c_str(), outresult.size(), 1, fp);
fclose(fp);
fp = NULL;

posted @ 2021-08-31 16:19  泽良_小涛  阅读(75)  评论(0编辑  收藏  举报