ifstream is_open getline std::string str; str.length str.erase str.substr str.find_first_of while(getline()) { }