System.IO.TextWriter.WriteLine Method

Writes an array of characters followed by a line terminator to the text string or stream.

Syntax

public virtual void WriteLine (char[] buffer)

Parameters

buffer
The character array from which data is read.

Exceptions

TypeReason
System.IO.IOException An I/O error occurred.

Remarks

All the characters in buffer are written to the underlying stream. If the character array is null, only the line terminator is written.

This overload is equivalent to TextWriter.Write(Char[]) followed by TextWriter.WriteLine .

The line terminator is defined by the TextWriter.CoreNewLine field.

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