14.3.1.Console I/O |
|
Console I/O is accomplished through the standard streams |
- Console.In,
- Console.Out, and
- Console.Error.
|
- Console.In is an instance of TextReader.
- Console.In defines two input methods: Read() and ReadLine().
- Console.Out and Console.Error are objects of type TextWriter.
- Console.Out and Console.Error are objects of type TextWriter.
|
- You can use the FileStream class to create a byte-oriented stream attached to a file.
- FileStream is derived from Stream.
- FileStream contains all of Stream's functionality.
|