ReadBlock()

TextReader::ReadBlock(ArrayPtr<char_t>, int, int) 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)

Arguments

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

Return Value

The actual number of characters read

See Also