Redirecting stdout
    Kris 
    foo at bar.com
       
    Tue Dec  4 20:56:51 PST 2007
    
    
  
With Tango you set either Stdout.stream() or Cout.output() to an output 
stream, which can be a file, socket, chunk of memory, or whatever. For 
example, to place all stdout and cout content into a file:
#   Cout.output (new FileOutput("redirected"));
"Robert Fraser" <fraserofthenight at gmail.com> wrote in message 
news:fj4stk$2c1t$1 at digitalmars.com...
> I'd like at a particular point in my program to temporarily ignore all 
> stdout (i.e. not have it written to the stream)... is there a way to do 
> this? I want my program to work under both Phobos & Tango, so a way for 
> both libraries would be great.
>
> Thanks,
> Robert 
    
    
More information about the Digitalmars-d-learn
mailing list