like in dos one can redirect command output to file and also decide if he wants to redirect errors too...
that 2&1> pipe thing.

why not add same thing to redirectoutput()?
something like:
redirectoutput("c:\myOutputFile.txt",0) ;New output data appended to the existing contents of file.
redirectoutput("c:\myOutputFile.txt",1) ;file overwritten with the redirected output.
redirectoutput("c:\myOutputFile.txt",2) ;same as 0 but also error/crash message included.
redirectoutput("c:\myOutputFile.txt",3) ;same as 1 but also error/crash message included.
redirectoutput("c:\myOutputFile.txt",4) ;New error/crash message appended to file.
redirectoutput("c:\myOutputFile.txt",5) ;file overwritten with the New error/crash message.
_________________________
!

download KiXnet