Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

File Channel in C++

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?

like image 709
user1785771 Avatar asked Jan 28 '26 09:01

user1785771


1 Answers

Please look into C++'s ifstream::seekg() and ifstream::tellg(). Also in C: ftell() and fseek() functions in <stdio.h>

like image 86
Aniket Inge Avatar answered Jan 29 '26 21:01

Aniket Inge