2014年9月7日 - Try this: string company = ""; while(company.compare("--END_MANAGER_DATA--") != 0 && !inFile.eof()) { getline(inFile, company); outFile
stackoverflow.com