| | Input and Output Classes - slide 17 : 40 |
Members in class StreamReader
- 10 StreamReader constructors
- Similar to the StreamWriter constructors
- StreamReader(String)
- StreamReader(Stream)
- StreamReader(Stream, bool)
- StreamReader(Stream, Encoding)
- others
- int Read() Reads a single character. Returns -1 if at end of file
- int Read(char[], int, int) Returns the number of characters read
- int Peek()
- String ReadLine()
- String ReadToEnd()
- CurrentEncoding
- A property that gets the encoding of this StreamReader