Please enable JavaScript to view this site.

OPEN #ch, fspec, INPUT {,WAIT'FILE}

OPEN #ch, fspec, OUTPUT {,WAIT'FILE}

OPEN #ch, fspec, APPEND (,WAIT'FILE}

Parameters

ch is an integer expression specifying the file channel which will be needed for subsequent I/O operations on the file. File channel 0 refers to the terminal, in which case the OPEN statement will have no effect.

fspec is a string expression specifying the file to open, using native or AMOS syntax. See the following topic .NULL files

WAIT'FILE only applies when the LOKSER system option is active and causes the program to wait for exclusive access to the file.

Comments

Opening a file for OUTPUT creates an empty file. If the file already existed, it is first deleted.

APPEND is equivalent to OUTPUT except that if the file does exist, it is not first deleted.

Subtopics

.NULL Files

Created with Help+Manual 9 and styled with Premium Pack Version 5 © by EC Software