2015-06-18 122 views

回答

2

如果使用std::getline,獲取所需要的行爲。

std::string theLine; 
std::ifstream theFile; 

// .... 

std::getline(theFile, theLine);