From: Nate Eldredge Newsgroups: comp.os.msdos.djgpp Subject: Re: order of exectution Date: 11 Nov 1999 01:06:07 -0800 Organization: InterWorld Communications Lines: 14 Message-ID: <83so2ds8hs.fsf@mercury.st.hmc.edu> References: <80dmqr$69o$1 AT nnrp1 DOT deja DOT com> NNTP-Posting-Host: mercury.st.hmc.edu X-Trace: nntp1.interworld.net 942311227 60096 134.173.45.219 (11 Nov 1999 09:07:07 GMT) X-Complaints-To: usenet AT nntp1 DOT interworld DOT net NNTP-Posting-Date: 11 Nov 1999 09:07:07 GMT X-Newsreader: Gnus v5.7/Emacs 20.4 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com chongkong AT my-deja DOT com writes: > eg. > > system("sort a.txt > b.txt"); > fp = fopen("b.txt", "r"); > > would the program wait for the system() to finish before opening the file ? Yes. -- Nate Eldredge neldredge AT hmc DOT edu