Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!bloom-beacon!eru!hagbard!sunic!news.funet.fi!tukki.jyu.fi!jyu.fi!otto From: otto@tukki.jyu.fi (Otto J. Makela) Newsgroups: comp.os.msdos.programmer Subject: Re: Need help with unbuffered writes Message-ID: Date: 7 Jan 91 06:12:51 GMT References: <2498@sparko.gwu.edu> Sender: news@tukki.jyu.fi (News articles) Organization: Turing Police, Criminal AI section Lines: 17 In-Reply-To: viraf@seas.gwu.edu's message of 5 Jan 91 00:03:23 GMT Nntp-Posting-Host: jyu.fi In article <2498@sparko.gwu.edu> viraf@seas.gwu.edu (Viraf Bankwalla) writes: I've noticed that although I may do a fflush (buffered I/O), or write, or _dos_write, the data is not always written out to file. On speaking with Miscrsoft, they informed me that the write may be committed by using INT 0x21, Function 0x68, on DOS 3.3 or later. Is there a way around this for earlier versions of dos, without opening and closing the file each time. Yes, the classic solution for DOS is to first DUP the file handle code, and then CLOSE the new handle. -- /* * * Otto J. Makela * * * * * * * * * * * * * * * * * * */ /* Phone: +358 41 613 847, BBS: +358 41 211 562 (CCITT, Bell 24/12/300) */ /* Mail: Kauppakatu 1 B 18, SF-40100 Jyvaskyla, Finland, EUROPE */ /* * * Computers Rule 01001111 01001011 * * * * * * * * * * * * * * * * */