Brick

File to vector

May 25th, 2016
245
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.16 KB | None | 0 0
  1. std::vector<unsigned char> fileVec
  2. (
  3.     std::istreambuf_iterator<char>(std::ifstream(fileName, std::ifstream::binary)),
  4.     std::istreambuf_iterator<char>()
  5. );
Advertisement
Comments
  • User was banned
Add Comment
Please, Sign In to add comment