StreamWriter.Write Method (Char, Int32, Int32)
Writes a subarray of characters to the stream.
Assembly: mscorlib (in mscorlib.dll)
buffer is null.
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.
Available since 8
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Available since 8.1