reader class : Read() method
Description
Gets a next character and advances the reading position.
Syntax
readerInstance.Read()
Arguments
None
Return value
Class | Description |
string | A next character. |
Sample code
1: | reader r = new reader("c:\somewhere...\sample.txt"); |
2: | string nextCharacter = r.Read(); |
Notes
It's a wrapper of the System.IO.StreamReader.Read() method.
Returns a next character. Throws exception If there is not a next character.
The current position move one character forward by Read().