Reading binary istream byte by byte

前端 未结 5 657
迷失自我
迷失自我 2021-01-01 10:57

I was attempting to read a binary file byte by byte using an ifstream. I\'ve used istream methods like get() before to read entire chunks of a binary file at once without a

5条回答
  •  南笙
    南笙 (楼主)
    2021-01-01 11:25

    As others mentioned, you should use istream::read(). But, if you must use formatted extraction, consider std::noskipws.

提交回复
热议问题