I\'m trying to write a classifier for the MNIST dataset in C++ using Visual Studio, but the std::istream::read function I\'m using to read one of the image files is failing