Random Access Keywords - Acorn computer econet level 2/3 User Manual

File server
Table of Contents

Advertisement

Random access keywords

In this list:
<ch> means a variable whose value is a channel number
<num-var> means a variable whose value is a number
<numeric> means a number, or a variable whose value is a
number
<string-var> means a variable whose value is a string
<string> means a string, or a variable whose value is
a string.
<ch>=OPENOUT("<filename>")
creates a file for writing and reading with the name specified
<ch>=OPENIN("<filename>")
opens the file specified for reading and writing (BASIC I
only)
<ch>=OPENIN("<filename>")
opens the file specified for reading (BASIC II only)
<ch>=OPENUP("<filename>")
opens the file specified for reading and writing (BASIC
II only)
CLOSE#<ch>
closes the channel specified
<num-var> =PTR# <ch>
sets the variable to the number of the byte currently pointed to
PTR#<ch>=<byte number>
moves the pointer to the byte specified
<num-var>=EOF#<ch>
sets the variable to –1 if the end of the file has been reached,
otherwise to 0
<num-var>=EXT#<ch>
sets the variable to the size of the file, in bytes
54

Advertisement

Table of Contents
loading

This manual is also suitable for:

Econet level 2Econet level 3

Table of Contents