Click or drag to resize
TextWriterWrite Method (Char, Int32, Int32)
Writes a subarray of characters to the text stream.

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public virtual void Write(
	char[] buffer,
	int index,
	int count
)

Parameters

buffer
Type: SystemChar
The character array to write data from.
index
Type: SystemInt32
Starting index in the buffer.
count
Type: SystemInt32
The number of characters to write.
Exceptions
ExceptionCondition
ArgumentExceptionThe buffer length minus index is less than count.
ArgumentNullExceptionThe buffer parameter is null.
ArgumentOutOfRangeExceptionindex or count is negative.
ObjectDisposedExceptionThe TextWriter is closed.
IOExceptionAn I/O error occurs.
See Also