I am trying to write a char in hexadecimal format to a binary file. I'm using the following: FileStream fs = new FileStream("test.bin"); BinaryWriter bw = new BinaryWriter(fs); char c = '\xABCD'; bw.Write(c); What I get in the file is EA AF ..... instead of expected AB CD ...... Any ideas? Thx. Samo.
S
samodrak
@samodrak