Acorn Computers BBC Micro Model B w/8271 — Acorn BBC Micro Model B w/8271 User Guide Manual PDF

282 OPENUP open a file for update Purpose This statement can be used with disc or Econet systems to open a file for update – that is, simultaneous reading and/or writing. With Econet, only one user may open a file for writing at any one time and therefore OPENUP should only be used in single user environments. If a file of the given name exists already then that file will be opened without any changes taking place to the file. If no file of that name exists then OPENUP will fail to open the file requested. OPENUP is normally used with random access files on disc or on the Level 2 Econet filing systems.

500 Y% = OPENUP("DATA") Example A function which returns the channel number allocated to a file opened for both reading and writing. The file must exist before this function can be used. Description Syntax = OPENUP ( ) Associated keywords OPENIN , OPENOUT , PTR# , EXT# , INPUT# , PRINT# , BGET# , BPUT# , EOF# , CLOSE#