What\'s the standard way of reading a \"line of numbers\" and store those numbers inside a vector.
file.in 12 12 9 8 17 101 2
Should I re
#include #include #include #include std::vector data; std::ifstream file("numbers.txt"); std::copy(std::istream_iterator(file), std::istream_iterator(), std::back_inserter(data));