qck.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
──────────────────────────────────────────────────────────────────────────────
 Enables I/O to a file or device. This alternate syntax does not support any
 of the access- and file-sharing options found in the primary syntax; it is
 provided for compatibility with programs written in earlier versions of
 Microsoft Basic.
 
    OPEN mode2$, [#]filenum%, file$ [,reclen%]
 
    ■ mode2       String expression that begins with one of the following
                  characters and specifies the file mode:
 
                  Character    File Mode
                  ═════════    ═════════════════════════════════════════════
                  O            Sequential output
                  I            Sequential input
                  R            Random-access file input/output
                  B            Binary
                  A            Sequential output; 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 appends to the file
 
    ■ filenum%    Integer expression with a value between 1 and 255,
                  inclusive
 
    ■ file$       File name or path
 
    ■ reclen%     For random-access files, the record length; for sequential
                  files, the number of characters buffered
 
 See Also
    OPEN Statement (File I/O)