Quote:
Originally posted by jodders
you prog1 and prog2 what type of files should it be? like should it be a C++ program,or just like text file?
Prog1 and Prog2 are any program (such as c++) or script(which is a text file) you want them to be... as long as Prog1 would normally send output to the screen, my line of code will redirect it into "myfile.dat" and also send it to "Prog2".