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
You can save it as a UTF8 encoded byte array like this:
... BinaryWriter w = new BinaryWriter(fs); w.Write(UTF8Encoding.Default.GetBytes("test")); ...