Writes a string of characters to the text stream.
[Visual Basic] Overloads Overrides Public Sub Write( _ ByVal value As String _ ) [C#] public override void Write( string value ); [C++] public: override void Write( String* value ); [JScript] public override function Write( value : String );
Exception Type | Condition |
---|---|
IOException | An I/O error occurs. |
The characters are read from value. All characters are written to the underlying stream unless the end of the underlying stream is reached prematurely. Flush is invoked automatically if AutoFlush is true. If value is a null reference (in Visual Basic Nothing), no operation is performed.
StreamWriter Class | StreamWriter Members | System.IO Namespace | StreamWriter.Write Overload List