FILE *stream; if ((stream = fopen("/root/aaa.pdf", "wb")) == NULL) /* open file TEST.$$$ */ { fprintf(stderr, "Cannot open output file.\n"); return 1; } fwrite(dest_buf, dest_size, 1, stream); /* 写的struct文件*/ fclose(stream); /*关闭文件*/
buf 数据写入文件
猜你喜欢
转载自www.cnblogs.com/hshy/p/12190628.html
今日推荐
周排行