Using the Console Class

When you are creating a console application, the Console class in the System namespace contains several shared properties and methods that facilitate working with the standard input and output device, generally the keyboard and console window. Table 13.1 lists the members of the Console class.

Table 13.1. Members of the System.Console Class
Member Description
Shared Properties
Error The standard error output stream
In The standard input stream
Out The standard output stream
Shared Methods
OpenStandardError Acquires the error stream
OpenStandardInput Acquires the input stream
OpenStandardOutput Acquires the output stream
Read Reads the next character in the input stream
ReadLine Reads the next line from the input stream ...

Get Visual Basic® .NET Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.