If I want to copy the contents of a file to a vector, I can do it like that:
std::ifstream file(\"path_to_file\"); std::vector buffer(std::istrea
The "STL way" is to use copy_n, which is in the STL but not the C++ standard.
copy_n