StreamWriter.Write Method (Char, Int32, Int32)
Writes a subarray of characters to the stream.
Assemblies: mscorlib (in mscorlib.dll)
System.IO (in System.IO.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.
.NET FrameworkSupported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1
.NET Framework Client ProfileSupported in: 4, 3.5 SP1
XNA FrameworkSupported in: 3.0, 2.0, 1.0
Portable Class LibrarySupported in: Portable Class Library
Supported in: Windows Phone 8.1
Supported in: Windows Phone Silverlight 8.1
Supported in: Windows Phone Silverlight 8