Click or drag to resize
BinaryWriterWrite Method (String)
Writes a length-prefixed string to this stream in the current encoding of the BinaryWriter, and advances the current position of the stream in accordance with the encoding used and the specific characters being written to the stream.

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public virtual void Write(
	string value
)

Parameters

value
Type: SystemString
The value to write.
Exceptions
ExceptionCondition
IOExceptionAn I/O error occurs.
ArgumentNullExceptionvalue is null.
ObjectDisposedExceptionThe stream is closed.
See Also