Delimiter for fgetc() in C++

I have a C++ program on Windows 10 that reads, using the function fgetc(), and prints to the display from a file that contains random binary numbers. However, it stops when it reads a “1a.” Does the function fgetc have “1a” as a delimiter? If so, is there a way to keep reading every number regardless of content?

1a isn’t a character?

Thank you. This occurs when I declare the data as char, int, unsigned int, or unsigned char. So I am looking for what to declare when I want to read an 8-bit number that can be any value.

1a is still a pair of characters though, so you shouldn’t be able to read 2 characters at the same time with fgetc(). The c in fgetc means you are getting a single character.