摘要: 打开一个文件读入文本,对文本进行操作后存入另一个文件。int main( ){ //读取文件内容// string filename;// cout<<"please input the filename: "<<flush;// cin>>filename; ifstream infile;//定义fstream对象并打开文件 infile.open("testFile.txt"); if(!infile) { cerr<<"error: unable to open file "&l 阅读全文
posted @ 2011-11-21 15:50 oceany 阅读(289) 评论(0) 推荐(0) 编辑