101.
I have a problem with Encoding and Decoding.
You're using a BinaryWriter and writing strings using it. Assuming the input file has "123" as its contents, do you want a 3 byte binary file with bytes 0x30, 0x31 and 0x32, or do you want an ASCII file with contents "303132"?If it's the former, then you should be writing bytes, not strings....
|
Updated: 11 Feb 2010
Rating: 5.00/5
( (1 vote))
|