Home Cooker Classes Others Rice CookerGX
Classes  >  reader  >  ReadToEnd()
reader class : ReadToEnd() method

Description

Gets all characters from the current position to the end.

Syntax

readerInstance.ReadToEnd()

Arguments

None

Return value

ClassDescription
stringAll characters from the current position to the end.

Sample code

//anyReader is an any instance of reader type.

string rest = anyReader.ReadToEnd();

Notes

It's a wrapper of the System.IO.StreamReader.ReadToEnd().

Returns a string which from the current position to the end. If the current position is at the end, returns an empty string.

The current position moves to the end by ReadToEnd().

Links for reference

Copyright © Rice All rights reserved.