Writes a byte to the current position in the file stream.
- value
- A byte to write to the stream.
Type Reason System.IO.IOException The current stream is closed. NotSupportedException The current stream does not support writing. ObjectDisposedException The current stream is closed.
Usage
Use FileStream.WriteByte(byte) method to write a byte to a System.IO.FileStream efficiently.Note:Use the FileStream.CanWrite property to determine whether the current instance supports writing. For additional information, see Stream.CanWrite.
This method overrides Stream.WriteByte(byte).
Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0