in reply to Re: Capturing program output
in thread Capturing program output

you could use named pipes

++, but only on UNIX like operating systems. Named pipes on Windows are rather different.