🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Turbo C++ fopen() & fflush()

#3134
From: Barry Ard
Date: Tue, 30 Oct 1990 20:40
13 lines
1268 bytes
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. It is my understanding that the fflush() should force the buffers
to be written to disk. Am I mistaken? I don't want to have to
open, write, close, the re-open the file, it seems so kludgy and
defeats the purpose of why I am flushing in the first place.
--------------------------------------------------------------------------
"So long Grizzly dudes", Bart Simpson
Barry Ard                     |     uucp:     ..!alberta!uqv-mts!userbard
University Computing Systems  |     inet:     userbard@mts.ucs.ualberta.ca
University of Alberta         |     bitnet:   userbard@ualtamts.bitnet
Edmonton, Alberta             |               bard@ualtavm
Technical Details
Message-ID: <1778@mts.ucs.UAlberta.CA>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!snorkelwacker.mit.edu!mit-eddie!uw-beaver!ubc-cs!alberta!mts.ucs.UAlberta.CA!Barry_Ard

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!snorkelwacker.mit.edu!mit-eddie!uw-beaver!ubc-cs!alberta!mts.ucs.UAlberta.CA!Barry_Ard
From: userBARD@mts.ucs.UAlberta.CA (Barry Ard)
Newsgroups: comp.os.msdos.programmer
Subject: Turbo C++ fopen() & fflush()
Message-ID: <1778@mts.ucs.UAlberta.CA>
Date: 30 Oct 90 20:40:21 GMT
Organization: MTS Univ of Alberta
Lines: 13