OPENUP
A function which opens a file (or device) for update (reading and writing) and returns the file handle of the file. This number must be used in subsequent references to the file with BGET#, BPUT#, INPUT#, PRINT#, EXT#, PTR#, EOF# or CLOSE#.
A returned value of zero signifies that the specified file (or device) was not found.
X=OPENUP "jim"
X=OPENUP A$
X=OPENUP (A$)
X=OPENUP ("FILE1")See the random file examples F-RAND0 in the ‘BBC BASIC(Z80) Files’ section for examples of the use of OPENUP.
You can also use OPENUP to access the devices :COM.0, :PRT.0, etc. See the ‘Operating System Interface’ and ‘BBC BASIC(Z80) Files’ sections for more details.
Syntax
<n-var>=OPENUP(<str>)Associated Keywords
OPENIN, OPENOUT, CLOSE#, PTR#, PRINT#, INPUT#, BGET#, BPUT#, EOF#
Last updated on