|
|
System.IO.StringReader Class |
|
|
Description | |
|
The StringReader class is descended from the abstract TextReader class. It allows a string to be read character by character, or line by line in much the same way as if the string were a text file.
The string must contain either Carriage return, Line-feed or both as the means of delimiting the lines. It is a shame that the constructor did not allow a string array to be used as well.
|
|
Syntax | |
|
Constructor Create ( | Value : String ); |
|
Methods | |
|
| Close | Closes the StringReader |
| Peek | Gives the value of the next character in the string without updating position |
| Read | Reads the next character or block of characters from the current string |
| ReadBlock | Reads the next block of characters from the current string |
| ReadLine | Reads the next line of characters from the current string |
| ReadToEnd | Reads to the end of the current string |
|
|
|
Microsoft MSDN links | |
|
|
|
|
|
|