Acorn computer econet level 2/3 User Manual page 42

File server
Table of Contents

Advertisement

The BASIC keywords which ask the file server to open a file for
random access are:
in BASIC I, OPENOUT (to create a new file to write to
and read) and OPENIN (to read and update an existing
file)
in BASIC II, OPENOUT (to create a new file to write to and
read), OPENIN (to read an existing file) and OPENUP (to
read and update an existing file).
BASIC I and BASIC II are two different versions of BBC
BASIC. To find out which version you have, look at the notes on
software versions in the reference section. The examples that
follow use the BASIC II keywords.
You can have up to five channels, so you can get random access
to up to five files at any one time. You can open the same file
more than once — but only for reading (that is, with the BASIC II
keyword OPENIN).
EXAMPLES
X=OPENIN("DATA")
This means:
open the file DATA for reading
let the variable X stand for the channel number the file
server assigns to DATA.
Y=OPENUP("INDEX")
This means:
open the file INDEX for reading and writing
let the variable Y stand for the channel number the file
server assigns to INDEX.
NOTE: there is no keyword in BASIC I that opens a file for
reading only: you will need to use the operating system routine
OSFIND. This method is described in the Econet Advanced
user guide. Your network manager should have copies.
40

Advertisement

Table of Contents
loading

This manual is also suitable for:

Econet level 2Econet level 3

Table of Contents