How to be sure a file is free to be accessed?
How to be sure a file is free to be accessed?
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?
Re: How to be sure a file is free to be accessed?
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