读:
ifstream fin("in.txt");
ofstream fout("out.txt",ios::out);
string tt;
while(getline)
{
fout << tt << "\n";
}
fin.close();
fout.close();
读:
ifstream fin("in.txt");
ofstream fout("out.txt",ios::out);
string tt;
while(getline)
{
fout << tt << "\n";
}
fin.close();
fout.close();