System::IO::TextReader::Read method

TextReader::Read() method

Reads a single character from the stream.

virtual int System::IO::TextReader::Read()

ReturnValue

Read character encoded with UTF-16 encoding; if the read character is represented by two codepoints in UTF-16 encoding then only the high surragate is returned.

See Also

TextReader::Read(ArrayPtr<char_t>, int, int) method

Reads the specified number of characters from the stream and writes them to the specified character array starting at the specified position.

virtual int System::IO::TextReader::Read(ArrayPtr<char_t> buffer, int index, int count)
ParameterTypeDescription
bufferArrayPtr<char_t>The UTF-16 character array to write the characters read from the stream to
indexintA 0-based index in buffer at which to start writing
countintThe number of characters to read from the stream

ReturnValue

The number of characters read from the stream

See Also