[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

File syncing

From: Michael C. Riedl
Subject: File syncing
Date: Tue, 08 May 2001 13:46:06 +0200

Hi there!

Between file operations with fopen() / fclose() and file operations with
something like system('grep ...') I found that I need to do sleeps in
order to make sure the file is properly closed before it is accessed the
next time.
Of course this is very bad style as the minimum time to sleep depends on
the speed of the computer and it's work load.

How can I make sure the files are synced in a proper way (fflush() and
system('sync') don't seem to be what I need)



Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:
How to fund new projects:
Subscription information:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]