reader class : ReadToEnd() method
Description
Gets all characters from the current position to the end.
Syntax
readerInstance.ReadToEnd()
Arguments
None.
Return value
Class | Description |
string | All characters from the current position to the end. |
Sample code
1: | reader r = new reader("c:\somewhere...\sample.txt"); |
2: | string rest = r.ReadToEnd(); |
Notes
It's a wrapper of the System.IO.StreamReader.ReadToEnd() method.
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().