1234567
string line; outdata << "history "; while(!outdata.eof()) { getline(outdata,line); cout << line; }