bas7qck.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
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