System::IO::StringReader class

StringReader class

Represents a reader that reads characters from a string. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument.

class StringReader : public System::IO::TextReader

Methods

MethodDescription
Close() overrideCloses the stream.
Dispose() overrideDoes nothing.
Dispose(bool) overrideDoes nothing.
Peek() overrideReads a single character from the stream without changing the stream’s position.
Read() overrideReads a single character from the stream.
Read(ArrayPtr<char_t>, int, int) overrideReads the specified number of characters from the stream to the specified character array starting at the specified position.
ReadLine() overrideReads characters from the stream until the end of the current line.
ReadToEnd() overrideReads characters from the stream until the end of the stream.
StringReader(const String&)Constructs a new instance of StringReader class that reads characters from the specified string.

See Also