Reads a number of characters from the current source TextReader and writes the data to the target array at the specified index.
- Parameters
-
sourceTextReader | The source TextReader to read from |
target | Contains the array of characteres read from the source TextReader. |
start | The starting index of the target array. |
count | The maximum number of characters to read from the source TextReader. |
- Returns
- The number of characters read. The number will be less than or equal to count depending on the data available in the source TextReader. Returns -1 if the end of the stream is reached.