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) Alternate Syntax
                                                 Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
OPEN mode2$,[#]filenum%,file$[,reclen%]
 
    ■ mode2       A string expression that begins with one of the
                  following characters and specifying the file mode:
                    ║ O    Sequential output mode.
                    ║ I    Sequential input mode.
                    ║ R    Random-access file input/output mode.
                    ║ B    Binary file mode.
                    ║ A    Sequential output mode. Sets the file
                    ║      pointer to the end of the file and the
                    ║      record number to the last record of the
                    ║      file. A PRINT # or WRITE # statement
                    ║      extends (appends to) the file.
    ■ filenum%    An integer expression with a value between 1 and 255.
    ■ file$       A string expression specifying a filename or path.
    ■ reclen%     Random-access files:    The record length.
                  Sequential files:       The number of characters buffered.
 
Important
    ■ This alternate syntax does not support any of the access and
      file-sharing options found in the primary syntax. It is supported
      for compatibility with programs written in earlier versions of BASIC.
 
See Also    OPEN (File I/O)