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
>
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
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
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
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
> 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
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