StreamWriter.Write Method (Char, Int32, Int32)
Writes a subarray of characters to the stream.
Assembly: mscorlib (in mscorlib.dll)
abstract Write : buffer:char * index:int * count:int -> unit override Write : buffer:char * index:int * count:int -> unit
buffer is a null reference (Nothing in Visual Basic).
The buffer length minus index is less than count.
index or count is negative.
An I/O error occurs.
This method overrides TextWriter.Write.
The characters are read from buffer beginning at index and continuing through index + (count - 1). All characters are written to the underlying stream unless the end of the underlying stream is reached prematurely. Flush is invoked automatically if AutoFlush is true.
For a list of common I/O tasks, see Common I/O Tasks.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.