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.
ACCESS Clause in the OPEN Statement (File I/O)
                                                 Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
 Specifies the type of access users have to an opened file.
 
    ACCESS {READ | WRITE | READ WRITE}
 
    ■ READ          Opens a file for reading only:
 
                    OPEN filename$ FOR OUTPUT ACCESS READ AS filenum#
 
    ■ WRITE         Opens a file for writing only:
 
                    OPEN filename$ FOR OUTPUT ACCESS WRITE AS filenum#
 
    ■ READ WRITE    Opens a file for both reading and writing; valid only
                    for random-access and binary-mode files, and files opened
                    for APPEND (sequential access):
 
                    OPEN filename$ FOR APPEND ACCESS READ WRITE AS filenum#
 
 See Also
    AS Clause (Different Uses)       OPEN Statement (File I/O)