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.
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