Date: Tue, 3 Nov 1998 11:38:56 +0200 (IST) From: Eli Zaretskii 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: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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?