System.IO.TextWriter.Write Method

Writes a character array to the text string or stream.

Syntax

public virtual void Write (char[] buffer)

Parameters

buffer
The character array to write to the text stream.

Exceptions

TypeReason
System.IO.IOExceptionAn I/O error occurred.

Remarks

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

This default method calls the TextWriter.Write(Char[], int, int) method and passes the entire character array. If the character array is null, nothing is written.

For a list of common I/O tasks, see Common I/O Tasks.

Requirements

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0