Writes a string to the text stream and advances the current position of the stream in accordance with the Encoding used and perhaps the particular characters being written to the stream.
[Visual Basic] Overloads Public Sub Write( _ ByVal value As String _ ) [C#] public void Write( string value ); [C++] public: void Write( String* value ); [JScript] public function Write( value : String );
Exception Type | Condition |
---|---|
IOException | An I/O error occurs. |
ArgumentNullException | value is a null reference (in Visual Basic Nothing). |
If the specified string is a null reference (Nothing), nothing is written to the text stream.
BinaryWriter Class | BinaryWriter Members | System.IO Namespace | BinaryWriter.Write Overload List