Writes a character array to the current 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 buffer() As Char _ ) [C#] public void Write( char[] buffer ); [C++] public: void Write( __wchar_t* buffer[] ); [JScript] public function Write( buffer : Char[] );
Exception Type | Condition |
---|---|
ArgumentNullException | buffer is a null reference (in Visual Basic Nothing). |
IOException | An I/O error occurs. |
BinaryWriter Class | BinaryWriter Members | System.IO Namespace | BinaryWriter.Write Overload List