read part of a file with iostreams

后端 未结 3 1028
忘了有多久
忘了有多久 2021-02-15 14:18

Can I open an ifstream (or set an existing one in any way) to only read part of a file? For example, I would like to have my ifstream read a file from

3条回答
  •  轮回少年
    2021-02-15 15:17

    You might want to implement your own stream reader class (preferably via some ifstream interface if one exists).

提交回复
热议问题