Q(uick)BASIC Keyword: ACCESS

Quick View

OPEN Statement ACCESS Clause

Specifies the type of access users have to an opened file

Worth knowing

Useful and cross-version information about the programming environments of QBasic and QuickBasic.

Syntax
  • ACCESS {READ | WRITE | READ WRITE}
Description/Parameter(s)
READ Opens a file for reading only.
WRITE Opens a file for writing only.
READ WRITE Opens a file for both reading and writing. READ WRITE mode is valid only for random-access and binary-mode files, and files opened for APPEND (sequential access).

See also:

Syntax
  • ACCESS {READ | WRITE | READ WRITE}
Description/Parameter(s)

The ACCESS clause is used in the OPEN statement. It works only if you are using a version of DOS that supports networking (DOS Versions 3.0 or later).

READ Opens a file for reading only.
WRITE Opens a file for writing only.
READ WRITE Opens a file for both reading and writing. This mode is valid only for RANDOM and BINARY files and files opened for APPEND.

See also:

Syntax
  • ACCESS {READ | WRITE | READ WRITE}
Description/Parameter(s)
READ Opens a file for reading only.
WRITE Opens a file for writing only.
READ WRITE Opens a file for both reading and writing.
  • READ WRITE mode is valid only for random-access and binary-mode files and files opened for APPEND (sequential access).
  • ACCESS works only if you are using OS/2 or a version of DOS that supports networking (DOS Versions 3.0 or later).