Guest User

Untitled

a guest
Jun 19th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. ifstream datafile("myfile.bin", ios_base::in|ios_base::binary);
  2. vector<char> buff;
  3. int size = datafile.tellg();
  4. buff.resize(size);
  5.  
  6. datafile.read(buff.data(), size);
  7.  
  8. for (vector<char>::iterator it = buff.begin(); it != buff.end(); ++it)
  9. {
  10. if (*it == 0x1B)
  11. {
  12. // found ESC char
  13. }
  14. }
Add Comment
Please, Sign In to add comment