Console I/O : Console Output : Development C# Examples


C# Examples » Development » Console Output »

 

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.




HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Development
» Console Output