Re: How to wait for file closing?
- Posted by FredRansom Dec 12, 2012
- 1588 views
After the last write, just before the fclose, place this statement: fflush (file); That forces Windows to write everything in the buffer to disc right away. Otherwise Windows won't write anything until it gets around to it, when it needs the buffer for something else, or when you shut down. fflush followed by fclose should make the file available for your Euphoria program as soon as you need it.