Hello,
Is there a way to verify if a file is already open?
I know you can access a file with a file handle
Code:
IF FILE(cPath)
FileHandle = FOPEN(cPath, 1)
ELSE // If not create it.
FileHandle = FCREATE(cPath)
ENDIF
IF FileHandle < 0 // Check for error opening file
WAIT 'Cannot open or create output file.' WINDOW NOWAIT
ENDIF
The above just indicates that the file can't be opened but no reason is available.
In order to provide more feedback to the user (or to suggest a course of action - such as closing the file), I want to determine if the user has the file open.
Is this possible?
Thanks,
Cory
Bookmarks