From: Tony Esposito <tony1234567893@yahoo.co.uk> > Agreed. But the program flow would be such (pseudo-code): > > (1) print STDOUT > print STDERR > (2) now print to both in one print statement > > (3) now go back to > print STDOUT > print STDERR > > I want to switch back-and-forth between being able to print to STDOUT, > STDERR with one 'print' statement and then back ... > > HTH I said you can! And you do not have to destroy the tee and then create it again. Once you create the tee you can print to STDOUT, STDERR or the teen any time you want, as many times you want and in any order you want. Jenda ===== Jenda@Krynicky.cz === http://Jenda.Krynicky.cz ===== When it comes to wine, women and song, wizards are allowed to get drunk and croon as much as they like. -- Terry Pratchett in SourceryThread Previous | Thread Next