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
As others mentioned, you should use istream::read(). But, if you must use formatted extraction, consider std::noskipws.