Writes a byte to the current position in the stream and advances the position within the stream by one byte.
An I/O error occurs. Methods were called after the stream was closed. The stream does not support writing, or the stream is already
/// closed.