Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <fstream>
- #include <iterator>
- std::vector<char> read_file(const std::string& fname)
- {
- std::ifstream inp(fname);
- return std::vector<char>(std::istreambuf_iterator<char>(inp),
- std::istreambuf_iterator<char>());
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement