create()

Mike Schwartz mschw at athenet.net
Thu Aug 29 07:50:53 PDT 2013


> From:  brian at aljex.com
> 
> You either closed the file or you didn't. That's all there is to it. If you closed it,
> then it's ready, for anything, immediately. If you didn't close it, then no
> amount of waiting will ensure it's ready.
> --
> bkw

     Dating back to the 1980's I've had problems with hard drives and hard drive controllers not completing file writes before I needed to open a file.  Most likely this is due to caching problems in the drive and controller firmware.  So, just closing the file doesn't guarantee that it will be immediately ready to be opened.

     However, I do agree that some mechanism other than sleep, such as looping through the open and testing to see if the file is accessible, is a lot more efficient than long sleep periods.

Mike Schwartz



        



More information about the Filepro-list mailing list