System::IO::TextReader::ReadBlock method

TextReader::ReadBlock method

Reads the specified maximum number of characters from the current text reader and writes the data to a buffer, starting at the specified index.

virtual int System::IO::TextReader::ReadBlock(ArrayPtr<char_t> buffer, int index, int count)
ParameterTypeDescription
bufferArrayPtr<char_t>A character buffer to write the read data to
indexintA 0-based index in buffer to start writing at
countintThe maximum number of characters to read

ReturnValue

The actual number of characters read

See Also