Several spot on answers as usual, thanks dudes. -----Original Message----- From: Discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of John Brett Sent: Wednesday, May 24, 2006 10:23 AM To: [email protected] Subject: Re: [ADVANCED-DOTNET] in program switch for piping console output to a file
> 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_Co nsole_SetOut_1_bab5f535.htm =================================== This list is hosted by DevelopMentorR http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com =================================== This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com
