Tag Archives: CSharp-Console-Class

Console.OpenStandardOutput Method is used to get the standard output stream. There are two overloads of OpenStandardOutput method available in C# which are listed below: OpenStandardOutput()… Read More
This method is used to acquire a standard error stream. This method can be used to reacquire the standard error stream after it has been… Read More
Console.SetCursorPosition(Int32, Int32) Method is used to set the position of cursor. Basically, it specifies where the next write operation will begin in the console window.… Read More
Console.TreatControlCAsInput Property is used to get or set a value indicating whether the combination of the Control modifier key and C console key (Ctrl+C) is… Read More
Console.SetWindowPosition(Int32, Int32) Method in C# is used to set the position of the console window relative to the screen buffer. Syntax: public static void SetWindowposition(int… Read More
The Console.SetError(TextWriter) Method sets the Error property of the specified StreamWriter i.e., it redirects the standard error stream to a file. As the console is… Read More
The Console.SetIn() method is used to set the In property of the specified StreamReader object i.e. it redirects the standard input from the console to… Read More
Console.SetOut(TextWriter) Method in C# is used to redirect the stream of standard output. With the help of this method, a user can specify a StreamWriter… Read More
Console.MoveBufferArea Method is used to move the specified screen area to destination area. Syntax: public static void MoveBufferArea (int sourceLeft, int sourceTop, int sourceWidth, int… Read More
Console.OpenStandardInput Method is used to get the standard input stream. There are two overloads of OpenStandardInput method available in C# which are listed below: OpenStandardInput()… Read More
Console.Read() Method is used to read the next character from the standard input stream. This method basically blocks its return when the user types some… Read More
Console.ReadKey() Method makes the program wait for a key press and it prevents the screen until a key is pressed. In short, it obtains the… Read More
Console.SetBufferSize(Int32, Int32) Method is used to set the height and width of the screen buffer area to the specified values. Syntax: public static void SetBufferSize(int… Read More
Console.KeyAvailable Property is used to get a value which shows whether a key press is available in the input stream. This property does not block… Read More
Console.ResetColor() Method is used to the foreground and background console colors to their defaults i.e. background to black and foreground to white. Syntax: public static… Read More