In java, there are FileChannels where I can read from file channel. I can also set the position in the channel where I want to start reading.
Any similar functions in C++/C?
Please look into C++'s ifstream::seekg() and ifstream::tellg(). Also in C: ftell() and fseek() functions in <stdio.h>
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