I'm trying to write binary data to a file. I want to create a file that contains the following data (hexadecimal notation):
So I tried this:
Instead, I got...
What am I doing wrong?
80
So I tried this:
Code:
ofstream outFile("file.txt", ios::binary);
uint32_t character = 0x80;
outFile << character;
outFile.close();
3132 380a
What am I doing wrong?
Comment