Mono Class Library: System.IO.TextWriter Overview | Members

System.IO.TextWriter.WriteLine Method

Writes a sub-array of characters from a specified character array, followed by a line terminator to the text stream. [Edit]

public virtual void WriteLine (char[] buffer, int index, int count)

Parameters

buffer
The char array from which characters are read. [Edit]
index
A int that specifies the index in buffer at which to begin reading. [Edit]
count
A int that specifies the maximum number of characters to write. [Edit]

Exceptions

TypeReason
ArgumentNullExceptionbuffer is null. [Edit]
ArgumentException(index + count ) > buffer.Length. [Edit]
ArgumentOutOfRangeException

index < 0

-or-

count < 0.

[Edit]
System.IO.IOExceptionAn I/O error occurred. [Edit]

Remarks

This version of TextWriter.WriteLine is equivalent to TextWriter.Write(char)( value, index, count ) followed by TextWriter.WriteLine().

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

Operation
As described above.

[Edit]

Requirements

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