std::string lineOfNumbers; std::getline(file, lineOfNumbers); // Now you have read all the numbers and ...
stackoverflow.com