How do I open a file in exclusive mode?
Contiguous, Formatted, Indexed-Contiguous, and text files may be exclusively opened using the EOPEN statement ('EOPN #1,"filename"') or the "E" open access mode ('OPEN #1, "filename"'). For compatibility with UniBasic, an exclusive open of a text file or non-Universal UniBasic file will succeed if another user has already opened the file in shared mode as long as the file has not been opened by another user in exclusive mode. An error will occur if a Portable or Universal file is opened in exclusive mode and another user has the file open in either shared or exclusive mode.
- FAQ:
