Programming instructions

Intermec Fingerprint v7.61 Programmers Reference Manual Ed. 7 185
Chapter 2 Program Instructions
OPEN
Field of Application
Statement for opening a le or deviceor creating a new lefor
input, output, or append, allocating a buffer, and specifying the
mode of access.
Syntax OPEN<sexp>[FOR
<INPUT|OUTPUT|APPEND>
]AS [#]<nexp
1
>[LEN=<nexp
2
>]
<sexp> is the le or device to be opened, of the le to becreated. File
names must not contain any colon character (:).
# indicates that whatever follows is a number. Optional.
<nexp
1
> is a designation number for the OPENed le or device.
<nexp
2
> is, optionally, the length of the record in bytes (default
128 bytes).
Remarks
An OPEN statement must be executed before a le or device can be used
for input, output, and/or append. A maximum of 25 les and/or devices
can be open at the same time.
Sequential Access Mode:
The access mode can optionally be specified as sequential INPUT,
OUTPUT, or APPEND:
INPUT Sequential input from the le/device, replacing existing
data. Existing les/devices only.
OUTPUT Sequential output to the le/device, replacing existing
data.
APPEND Sequential output to the le/device, where new data will
be appended without replacing existing data.
Random Access Mode:
If no access mode is speci ed in the statement, the le/device is opened
for both input and output (RANDOM access mode). FIELD, LSET,
RSET, PUT, and GET can only be used on records in les OPENed in
the RANDOM access mode.
Please refer to the DEVICES statement for information on which devices
can be opened for the different modes of access.
Lists of the les stored in the various parts of your printers memory can be
obtained by the use of the FILES statements.
Electronic Keys:
Each key circuit may contain a number of key items. There are two
types of key items:
Lock (device "lock:")
Storage (device "storage:")
Each key item has a le name consisting of max. 4 characters, usually
appended by a password. The password consists of a delimiter character
(?) indicating the password followed by the actual password (max. 4
characters). Failure to include the correct password (if such is required) in
the le name will result in an error.