[fpc-pascal]Filter

Rich Pasco pasco at acm.org
Fri Sep 21 15:56:13 CEST 2001


On Fri, 21 Sep 2001, Andreas K. Foerster wrote:

> how can I start an external program and redirect its standard output
> so that I can use it from within my program.

Michael Van Canneyt wrote:

> On DOS it is impossible.

Not so.  A colleague and I wrote a program in Borland Pascal 7.01 for
DOS that does exactly that.  It uses the DOS functions $45 and $46
to duplicate a file handle...

     - Rich




More information about the fpc-pascal mailing list