Share via


Write Method (Char[])

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Writes a character array to the text string or stream.

Namespace:  System.IO
Assembly:  System.IO (in System.IO.dll)

Syntax

'Declaration
Public Overridable Sub Write ( _
    buffer As Char() _
)
public virtual void Write(
    char[] buffer
)
public:
virtual void Write(
    array<wchar_t>^ buffer
)
abstract Write : 
        buffer:char[] -> unit 
override Write : 
        buffer:char[] -> unit 
public function Write(
    buffer : char[]
)

Parameters

  • buffer
    Type: array<System. . :: . .Char> [] () [] []
    The character array to write to the text stream.

Remarks

This method does not search the specified string for individual newline characters (hexadecimal 0x000a) and replace them with NewLine.

This default method calls the Write(array<Char>[]()[][], Int32, Int32) method and passes the entire character array. If the character array is null Nothing nullptr unit a null reference (Nothing in Visual Basic) , nothing is written.

.NET Framework Security

See Also

Reference

TextWriter Class

Write Overload

System.IO Namespace