c++文件读写

#include <fstream>

 

ofstream fout;

fout.open(“filename”);

//文件打开是否失败

if(fout.fail())

exit(1);

 

fout<<”     ";

posted @ 2011-12-20 21:11  无殇天下  阅读(215)  评论(0)    收藏  举报