Professor Hank Stalica | C++ Tutorial: File Random Access // How to fast forward and rewind through your files! @ProfessorHankStalica | Uploaded 1 year ago | Updated August 10 2023
Let's see how we can use random access to speed up file processing by fast fowarding (or rewinding) directly to the position we want in our file.
We'll use seekg(), seekp(), tellg(), tellp() to manipulate the file position pointer to get us right where want to be in the file when we do our read or write.
Why read the first 10,000 bytes of the file if you only want the 10,001st byte?
Works for both text and binary files!
In this C++ tutorial for beginners, we will learn by doing through writing programs together using Visual Studio 2022 C++.
// Learn More //
Advanced File Operations Playlist: https://www.youtube.com/playlist?list=PLaatXkJEXKyJ3KnOMlbPE2jCVrHmRULUB
// Consider supporting this channel in multiple ways
https://paypal.me/hankstalica1
Bitcoin: 177wfkQwzXiC8o2whQMVpSyuWUs95krKYB
Let's see how we can use random access to speed up file processing by fast fowarding (or rewinding) directly to the position we want in our file.
We'll use seekg(), seekp(), tellg(), tellp() to manipulate the file position pointer to get us right where want to be in the file when we do our read or write.
Why read the first 10,000 bytes of the file if you only want the 10,001st byte?
Works for both text and binary files!
In this C++ tutorial for beginners, we will learn by doing through writing programs together using Visual Studio 2022 C++.
// Learn More //
Advanced File Operations Playlist: https://www.youtube.com/playlist?list=PLaatXkJEXKyJ3KnOMlbPE2jCVrHmRULUB
// Consider supporting this channel in multiple ways
https://paypal.me/hankstalica1
Bitcoin: 177wfkQwzXiC8o2whQMVpSyuWUs95krKYB