writing to stderr, standard error, console

S

seannakasone

To write to stdout, i do this:

System.Console.WriteLine("the quick brown fox");

How do you write to stderr?
 
S

seannakasone

oops never mind, i figured it out.
TextWriter errorWriter = Console.Error;
errorWriter.WriteLine("the quick brown fox");
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top