🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #3211

Re: Turbo C++ fopen() & fflush()

#3211
From: Larry Jones
Date: Wed, 28 Nov 1990 16:15
21 lines
1469 bytes
In article <1020@marvin.moncam.co.uk>, emmo@moncam.co.uk (Dave Emmerson) writes:
> In article <1778@mts.ucs.UAlberta.CA>, userBARD@mts.ucs.UAlberta.CA (Barry Ard) writes:
> > I'm using TC++ 1.0 and am fopen()'ing a file that I write to using
> > fwrite(), I then do an fflush(), and as a test I reboot via the 3 finger
> > salute (ctrl-alt-del). When I check the file the fwrite() didn't
> > happen. 
> 
> Problem is, fflush doesn't flush the DOS buffers to disk, so
> you need to do :

It may be worth noting that this is the standard behavior for fflush.

fflush is a >C< library function that flushes the >C< library's buffers.
I know of NO systems where it also causes the file system / operating
system buffers to be flushed as well.
----
Larry Jones                         UUCP: uunet!sdrc!thor!scjones
SDRC                                      scjones@thor.UUCP
2000 Eastman Dr.                    BIX:  ltl
Milford, OH  45150-2789             AT&T: (513) 576-2070
Santa's gonna skip this block for years. -- Calvin
Technical Details
Message-ID: <209@thor.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!att!linac!pacific.mps.ohio-state.edu!zaphod.mps.ohio-state.edu!wuarchive!uunet!sdrc!thor!scjones
References: <1778@mts.ucs.UAlberta.CA> <1020@marvin.moncam.co.uk>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!att!linac!pacific.mps.ohio-state.edu!zaphod.mps.ohio-state.edu!wuarchive!uunet!sdrc!thor!scjones
From: scjones@thor.UUCP (Larry Jones)
Newsgroups: comp.os.msdos.programmer
Subject: Re: Turbo C++ fopen() & fflush()
Message-ID: <209@thor.UUCP>
Date: 28 Nov 90 16:15:54 GMT
References: <1778@mts.ucs.UAlberta.CA> <1020@marvin.moncam.co.uk>
Organization: SDRC, Cincinnati
Lines: 21