将 in.txt 的内容连接到 out.txt 的末尾
#include
#include
#include
using namespace std;
int main()
{
ifstream ifile;
ifile.open("in.txt");
ofstream ofile;
ofile.open("out.txt",ofstream::app);
string str;
while(ifile>>str)ofile<
ifile.close();
ofile.close();
return 0;
}