Mono Class Library: System.IO.TextReader Overview | MembersSystem.IO.TextReader.ReadBlock Method |
Reads a specified number of characters from the current stream into a provided character array. [Edit]
|
- buffer
- A char array. When this method returns, contains the specified character array with the values between index and (index + count - 1) replaced by the characters read from the current source. [Edit]
- index
- A int that specifies the index in buffer at which to begin writing. [Edit]
- count
- A int that specifies the maximum number of characters to read. [Edit]
A int containing the number of characters that were read, or zero if there were no more characters left to read. Can be less than count if the end of the stream has been reached. [Edit]
Type Reason ArgumentNullException buffer is null. [Edit] ArgumentException (index + count - 1) > buffer.Length. [Edit] ArgumentOutOfRangeException index < 0
- or-
count < 0.
[Edit]System.IO.IOException An I/O error occurred. [Edit]
The method blocks until either the specified number of characters are read, or no more characters are available in the source.
Operation
As described above. [Edit]
Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0