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;
文件的写
原文:https://www.cnblogs.com/zeliangzhang/p/15210912.html