D
Dan
I am attempting to use a BinaryWriter to write a char array containing the
following 6 hex values:
0x7e
0x86
0x6f
0x7a
0x6c
0x41
The code I'm using looks like this:
FileStream fs = File.Create(MyFile);
BinaryWriter w = new BinaryWriter((Stream) fs, Encoding.ASCII);
w.Write(myCharArray, 0, myCharArray.Length);
w.Flush();
fs.Close();
All of the characters are written correctly to the file except for the
second (0x86) which comes out as 0x3F. I have verified that the characters
in the array are definitely the values shown above. The same code works
fine on a desktop. Does anyone know what's going wrong?
Thanks...
Dan
following 6 hex values:
0x7e
0x86
0x6f
0x7a
0x6c
0x41
The code I'm using looks like this:
FileStream fs = File.Create(MyFile);
BinaryWriter w = new BinaryWriter((Stream) fs, Encoding.ASCII);
w.Write(myCharArray, 0, myCharArray.Length);
w.Flush();
fs.Close();
All of the characters are written correctly to the file except for the
second (0x86) which comes out as 0x3F. I have verified that the characters
in the array are definitely the values shown above. The same code works
fine on a desktop. Does anyone know what's going wrong?
Thanks...
Dan