Is there such a switch or technique that has the same effect?

So you've written a console app? You want to achieve the equivalent of:

c:\MyProg\bin\debug> MyProg >output.txt

but programmatically?

Console.SetOut(TextWriter tw) should do it.


ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.NETDEVFX.v20.en/cpref2/html/M_System_Console_SetOut_1_bab5f535.htm

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to