How do I write to command line in c#?
Posted
by ben
on Stack Overflow
See other posts from Stack Overflow
or by ben
Published on 2010-06-16T23:16:28Z
Indexed on
2010/06/16
23:22 UTC
Read the original article
Hit count: 207
Hi I know how to write to console but if I write to console in my program and call my program from the command line it won't display anything.
How do I make it so that when I say Console.WriteLine or Console.Out.Writeline ir prints to the command prompt from which it was called and not somewhere else?
Once again I know how to do Console.WriteLine so it's not that :-p unless I'm doing it wrong.
From what I can tell it's probably something to do with Console.SetOut(TextWriter t)
© Stack Overflow or respective owner