I've succefully outputted all kinds of hex values to files, except the value "00", it is simply ignored. I know it is possible, because I know a program that does it. I've also tried outputting "\0", which is also ignored.
Printable View
I've succefully outputted all kinds of hex values to files, except the value "00", it is simply ignored. I know it is possible, because I know a program that does it. I've also tried outputting "\0", which is also ignored.
Did you open the file in binary mode?
No
That is one problem. Also if you are using ofstream or fstream to write to the file, use the write() function to output hex 00.
Thanks for the advice