My binary file looks like this.
00000000: 0000 0803 0000 ea60 0000 001c 0000 001c 00000010: 0000 0000 0000 0000 0000 0000 0000 0000
left co
Open file in binary mode and then use read() method, something like:
read()
uint32_t a; ifstream file ("file", ios::in | ios::binary); if (file.is_open()) { file.read ((char*)&a, sizeof(a)); }