Re: [ADVANCED-DOTNET] in program switch for piping console output to a file

2006-05-28 Thread Igal Yoffe
o: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM > Subject: Re: [ADVANCED-DOTNET] in program switch for piping > console output to a file > > Alex, > > Well...in terms of 'technique' in several of my programs I > used the Tracing libraries (TraceListener). I use >

Re: [ADVANCED-DOTNET] in program switch for piping console output to a file

2006-05-24 Thread Alex Smotritsky
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

Re: [ADVANCED-DOTNET] in program switch for piping console output to a file

2006-05-24 Thread John Brett
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.e

Re: [ADVANCED-DOTNET] in program switch for piping console output to a file

2006-05-24 Thread David L. Penton
Alex, Well...in terms of 'technique' in several of my programs I used the Tracing libraries (TraceListener). I use commandline switches like /trace to enable tracing, /traceoutput:Log/Console/Both (my defaults are normally /trace and Console). Perhaps there is a per hit for this, but it seems

Re: [ADVANCED-DOTNET] in program switch for piping console output to a file

2006-05-24 Thread Peter Ritchie
You can use the Console.SetOut method, or Console.SetError method if you want to redirect stderr as well/instead of. On Wed, 24 May 2006 10:12:36 -0400, Alex Smotritsky <[EMAIL PROTECTED]> wrote: >Is there such a switch or technique that has the same effect? === T

Re: [ADVANCED-DOTNET] in program switch for piping console output to a file

2006-05-24 Thread Frans Bouma
> Is there such a switch or technique that has the same effect? In what context would you want one? I mean: you can always write the output to a file yourself, so that's not it what you're asking I think ;). Frans === This list is hosted b

[ADVANCED-DOTNET] in program switch for piping console output to a file

2006-05-24 Thread Alex Smotritsky
Is there such a switch or technique that has the same effect? === This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com