In a text file I will have a line containing a series of numbers, with each number separated by a space. How would I read each of these numbers and store all of them in an arra
std::ifstream file("filename"); std::vector array; int number; while(file >> number) { array.push_back(number); }