Writes a byte to the current position in the stream and advances the position within the stream by one byte.
Type Reason System.IO.IOException An I/O error has occurred. NotSupportedException The stream does not support writing. ObjectDisposedException The stream is closed.
Use the Stream.CanWrite property to determine whether the current instance supports writing.