How to be sure a file is free to be accessed?
Posted: Thu Nov 11, 2010 6:04 pm
When a program generates a beg text file, which we want in turn to read, how to know for sure, that the writing's been finished?
http://www.purebasic.com
https://www.purebasic.fr/english/
Code: Select all
If ReadFile(0, "Filename")
; File opened for reading
Else
; File not opened for reading. Either it doesn't exist, or another program is using it
EndIf