So I've been setting an fstream class with openmode as binary and reading info to it, as in the following example:
1 2 3
int i = 1024;
file << i;
Now I would've expected to see, in foo.txt, the binary representation of 1024. But I keep getting the text of '1024'. Am I wrong in one of my assumptions, or am I just doing something wrong? Thanks in advance!