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
char *buffer = new char[n]; file.read(buffer,n); std::vector myVector for (int i=0;i
It may not be the prettiest or quickest way, but it is how I would do it.