FILE* fp = 0;if(0 == ( fp = freopen("OUT.txt", "w" ,stdout))) printf("Cannot open file.\n");
printf(“test data to file\n”);
fclose(fp);
posted on 2012-07-20 15:46 肥仔 阅读(7563) 评论(3) 编辑 收藏 引用 所属分类: C++ 基础
Powered by: C++博客 Copyright © 肥仔