What is the stream class to use for writing to the file strings and byte[] arrays?
File needs to be opened to append or created new if it is absent.
using (Stream s = new Stream("application.log")
{
s.Write("message")
s.Write(new byte[] { 1, 2, 3, 4, 5 });
}
Try using a BinaryWriter? http://msdn.microsoft.com/en-us/library/system.io.binarywriter.aspx