Resetting the End of file state of a ifstream object in C++

后端 未结 3 1270
耶瑟儿~
耶瑟儿~ 2020-12-18 19:03

I was wondering if there was a way to reset the eof state in C++?

3条回答
  •  -上瘾入骨i
    2020-12-18 19:23

    Presumably you mean on an iostream. In this case, the stream's clear() should do the job.

提交回复
热议问题