OPEN Statement (File I/O)
◄Syntax► ◄Details► ◄Example► ◄Contents► ◄Index► ◄Back►
──────────────────────────────────────────────────────────────────────────────
OPEN file$ [FOR mode] [ACCESS access] [lock] AS [#]filenumber% [LEN=reclen%]
OPEN database$ FOR ISAM tabletype tablename$ AS [#]filenumber%
■ file$ A filename or path.
■ mode Random ║ Binary ║ Input ║ Output ║ Append
■ access Read ║ Write ║ Read Write
■ lock Shared ║ Lock Read ║ Lock Write ║ Lock Read Write
■ filenumber% An integer expression with a value between 1 and 255.
■ reclen% Random-access files: The record length.
Sequential files: The number of characters buffered.
■ database$ A database filename or path.
■ tabletype The name of a type of table defined using TYPE.
■ tablename$ Follows the ◄ISAM Naming Conventions►.
See Also ◄Alternate Syntax► ◄CLOSE► ◄FREEFILE► ◄TYPE►