摘要:
打开一个文件读入文本,对文本进行操作后存入另一个文件。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 阅读全文