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 Subject: Re: fstream and fflush To: djgpp AT delorie DOT com In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 Hi all. --- Jason Mills 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