qck.hlp (Table of Contents; Topic list)
File Mode Keywords
                                                 Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
  File Mode Keywords
 
 ■ The following keywords are used with the OPEN statement to specify file
   modes:
 
   Keyword     File Mode
   ═══════     ═════════════════════════════════════════════════════════════
   APPEND      Sequential output. Sets the file pointer to the end of file;
               a PRINT # or WRITE # statement extends (appends to) the file.
   BINARY      Binary file mode. In binary mode, you can read or write
               information to any byte position in the file using GET or PUT
               statements.
   INPUT       Sequential input.
   OUTPUT      Sequential output.
   RANDOM      (Default) Random access. In random-access mode, if no ACCESS
               clause is present, three attempts are made to open the file
               when the OPEN statement is executed. Access is attempted in
               the following order:
               • Read/write
               • Write-only
               • Read-only
 
   Note: INPUT, OUTPUT, and RANDOM are also used in the OPEN COM statement.
 
 See: File I/O Commands  OPEN Statement (File I/O)  OPEN COM Statement