Date: Thu, 15 Feb 2001 22:41:55 +0200 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: rafael AT geninfor DOT com Message-Id: <1438-Thu15Feb2001224154+0200-eliz@is.elta.co.il> X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.6 CC: djgpp AT delorie DOT com In-reply-to: <3a8bc878@filemon.telecable.es> (rafael@geninfor.com) Subject: Re: reading a currently writting file References: <3a8bc878 AT filemon DOT telecable DOT es> Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > From: "Rafael Garcia" > Newsgroups: comp.os.msdos.djgpp > Date: Thu, 15 Feb 2001 13:14:18 +0100 > > I have a program that write some information about its work in a LOG file. > When it ends execution I can open it to know what was happening. > > But it would be nice if I could read it meanwhile running. If I try to open > the file for reading from another Windows DOS box, fopen() fails. You should be able to specify appropriate file-sharing flags using the `__djgpp_share_flags' variable, which is documented in the library reference. `fopen' pays attention to this variable when it calls the OS function to open the file.