Why does BinaryWriter prepend gibberish to the start of a stream? How do you avoid it?

后端 未结 9 1734
别跟我提以往
别跟我提以往 2020-11-30 10:11

I\'m debugging some issues with writing pieces of an object to a file and I\'ve gotten down to the base case of just opening the file and writing \"TEST\" in it. I\'m doing

9条回答
  •  北海茫月
    2020-11-30 10:54

    That's a byte order mark, most likely. It's because the stream's encoding is set to Unicode.

提交回复
热议问题