I am trying to read character by character in C++ from a file. To the baked eyes the file has only "ABCD" content.
However, when I read the character by character from the file using ifstream (through the get() function), I see these extra characters.
I am not able to understand what is the issue. Kindly give some suggestions.
Below code to read byte by byte from the file input_file -> ifstream
while(input_file.good()){ unsigned char c = input_file.get() // other logic }