摘要: 1.以out模式打开,文件数据会清空。2.通过判断fstream对象是否为true,来确定是否打开成功。1 fstream fOut("test", fstream::trunc);2 if(fstream)3 {4 // 打开成功5 }View Code3.fstream默认以in和out... 阅读全文
posted @ 2014-04-24 11:39 TaoyzDream 阅读(120) 评论(0) 推荐(0) 编辑