From: Hans-Bernhard Broeker Newsgroups: comp.os.msdos.djgpp Subject: Re: How to switch popen read/write modes? Date: 28 Nov 2000 11:03:53 GMT Organization: Aachen University of Technology (RWTH) Lines: 19 Message-ID: <9003ep$s5t$1@nets3.rz.RWTH-Aachen.DE> References: <3A2325FF DOT A38B511D AT sigmanet DOT com DOT br> NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de X-Trace: nets3.rz.RWTH-Aachen.DE 975409433 28861 137.226.32.75 (28 Nov 2000 11:03:53 GMT) X-Complaints-To: abuse AT rwth-aachen DOT de NNTP-Posting-Date: 28 Nov 2000 11:03:53 GMT Originator: broeker@ To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Anderson wrote: > Hi guys! > I'm trying out with popen function. It says (at help file) that it can > open a program for reading and writing > handle = popen ("program", "rb+") In what help file did you find that? It's untrue, for every popen() implementation I've seen. The only 'mode' arguments for popen() are "r" and ". I.e. the DJGPP docs may have a little flaw, here, where they say: The MODE is the same as for `fopen' (*note fopen::.). That's not true. -- Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de) Even if all the snow were burnt, ashes would remain.