Read()

StringReader::Read() method

Reads a single character from the stream.

virtual int System::IO::StringReader::Read() override

Return Value

A read character or -1 if no character has been read

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

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

virtual int System::IO::StringReader::Read(ArrayPtr<char_t> buffer, int index, int count) override

Arguments

ParameterTypeDescription
bufferArrayPtr<char_t>The 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

Return Value

The number of characters read from the stream

See Also