I'm trying to read a file which contain data in binairy mod. The size of the file is 28 bytes but when i try to read this file I only have 22 bytes. I have already tried to modify the info inside the file but it's still missing some bytes. I have no idea why. PS: I know which data are inside the file but they're not readeable in any kind of computer character encoding standard. The code used to read the file:
std::string line{ "" };
std::string buffer;
while (std::getline(file, line))
buffer += line;
file.close();