www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/11/03/04:40:07

Date: Tue, 3 Nov 1998 11:38:56 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: djgpp AT delorie DOT com
Subject: Re: redirecting stdout from within a DJGPP program
In-Reply-To: <363e9c11.35648820@news.cis.yale.edu>
Message-ID: <Pine.SUN.3.91.981103113756.19001P-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

On Tue, 3 Nov 1998, Mapson wrote:

> There is one point in my program where I call another program (using
> system("program.exe") ), and I am interested in redirecting (and
> silencing at the console) the output of that program to a file I
> already have opened for output. This is something I'd previously done
> in a batch file with ">>"

How about system("program.exe >> file")?  Doesn't that do what you want?

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019