Guess that discussion is useless. Youre expecting some magic trom the compiler that just cannot be done.
The one thing that you didn't understand about C++ I/O is that the >> and << are just typesafe replacements of the C functions printf and scanf (-> text I/O).
If you want binary IO then read and write are to be used.
Kurt