Advertisement
Guest User

Untitled

a guest
Oct 21st, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. stream.seekg(0, stream.end);
  2. cout << stream.tellg() << endl;
  3. stream.seekg(0, stream.beg);
  4. cout << stream.tellg() << endl;
  5.  
  6. int counter = 0;
  7. while (stream.good()) {
  8. stream.read(buffer, 1);
  9. cout << stream.tellg() << " " << counter++ << " " << stream.gcount() << endl;
  10. }
  11. cout << counter << endl;
  12.  
  13. ...
  14. 242770 25488 1
  15. 245760 25489 1
  16. 249345 25490 1
  17. 249346 25491 1
  18. 249347 25492 1
  19. ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement