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;