I'm not sure if this subject has be discussed before. I want to know if there is a way to tell within a program where its standard output goes. More specifically, if the output goes to the terminal screen, or goes to a pipe, or is redirected into a disk file. Thanks for any info. -ping