Programming Reference Manual
 
Syntax
 
FOpen(filename$, accessmode%, sharemode%)
 
Description
Opens a text- or binary file using the special  Fast I/O Functions. These special function all begin with a capital ‘F’. Instead of assigning a filenumber to a file to be opened (like with the Open statement), this function returns a DOS handle, which is needed for further use with the other Fast I/O Functions.
 
NOTE: If the file does not yes exist, you should first use the FCreate statement.
 
Parameter
Description
Filename
The name of the file to beaccessed.
accessmode%
Files can be opened in the following modes:
0 = Open file for reading only
1 = Open file for writing only
2 = Open file for reading and writing.
sharemode%
0 = Deny sharing access (compatibility mode)
1 = Deny read/write access
2 = Deny write access
3 = Deny read access
4 = Deny none (full share mode)
See Also
Example
 
Sub Main
Dim Hnd%, rec&
Hnd% = FOpen(“C:\MYDBASE.DAT”, 0, 4)
'read-only, shared
Debug.Print FLof(Hnd%)
FClose Hnd%
End Sub