delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2004/10/25/15:08:20

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
Message-ID: <20041025190735.43963.qmail@web50701.mail.yahoo.com>
Date: Mon, 25 Oct 2004 12:07:35 -0700 (PDT)
From: Lets Go Canes <letsgonhlcanes AT yahoo DOT com>
Subject: Re: fstream and fflush
To: djgpp AT delorie DOT com
In-Reply-To: <clbre5$bvl$1@coranto.ucs.mun.ca>
MIME-Version: 1.0
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

Hi all.

--- Jason Mills <jmills AT cs DOT mun DOT ca> wrote:

> Thanks enlightening me. (For some reason, I always assumed flush
> meant
> flush to the disk.....)

flush flushes the output stream from the library buffer to the OS
buffer - this is generally done automatically every time you output a
newline.  There may be a delay before the OS sync's the OS buffer to
the disk.  As someone else mentioned, on Linux you've been lucky - if
you need to know the data is on-disk, you need to use sync/fsync.


=====
--------------
Lets Go Canes!


		
_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019