stdout vs console.write in c#

In languages like C and C++, there is a global variable with the name stdout, which is a pointer to the standard output stream. Thus, stdout has become a commonly used abbreviation for “standard output stream” even outside the context of the C language.

Now, what does C# do? Let’s have a look at the documentation of Console.WriteLine (emphasis mine):

Writes the specified string value, followed by the current line terminator, to the standard output stream.

So, yes, Console.WriteLine does exactly what you need to do. If you need a direct reference to the standard output stream (Hint: you usually don’t), you can use the Console.Out property.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)