Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stream.seekg(0, stream.end);
- cout << stream.tellg() << endl;
- stream.seekg(0, stream.beg);
- cout << stream.tellg() << endl;
- int counter = 0;
- while (stream.good()) {
- stream.read(buffer, 1);
- cout << stream.tellg() << " " << counter++ << " " << stream.gcount() << endl;
- }
- cout << counter << endl;
- ...
- 242770 25488 1
- 245760 25489 1
- 249345 25490 1
- 249346 25491 1
- 249347 25492 1
- ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement