57

Syntax Summary
OPEN...INPUT (see Chapter 8) Use OPEN file for input.
Syntax OPEN [I/)stream-number [,) INPUT filename if,) LOCK lock-type)

OPEN..OUTPUT (see Chapter 8)
Use OPEN file for output. (See also OPEN...APPEND.(
Syntax OPEN [I/)stream-number [,) [exist) OUTPUT fliename if,) LOCK lock-type) where existis NEW or OLD

OPEN...PRINT (see Chapter 8)
Use OPEN,.PRINT associates a given stream with a simple printer device. Syntax OPEN [I/)stream-number [,) PRINT [printer-number)
where print-number is an integer-expression, giving a value in the range 0.5
0
=PRN
1.3
= LPT1toLPT3
4.5
= COM1 to COM2
OPEN..RANDOM (see Chapter 13)
Use OPEN_RANDOM associates a given stream with a random or keyed tile. Syntax OPEN [I/)stream-number [,) [exist) RANDOM random-spec if,) LOCK lock-type) where random-spec is filename if,) INDEX filename) if,) LENGTH record-length)
record-length is an integer-expression, giving a value in the range 1.4096.

OPEN...WINDOW (see Chapter 8)
Use OPEN_WINDOW associates a given stream with a given screen window. Syntax OPEN [I/)stream-number [,) WI NDOW window-number
where window-numberis an integer-expression, giving a value in the range 1.4.

OSERR (see Chapter 16)
Use
OSERR is a function which gives more information about the latest “operating
system dependent” error.
Syntax OSERR
BASIC 2 Plus: User Guide & Quick Reference
57

57