I've been tasked to update some C code to C++ and was curious, what is the equivalent method or implementation of C FILE *'s rewind method within ifstream?
That would be either seekg
(sets the get-pointer) or seekp
(sets the put pointer). In both cases, passing 0 as parameter results in the pointer being set to the beginning of the file.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With