Owner`s manual

48
WOPEN
# (write open)
Opens the files for write-in.
Format:
WOPEN
# <logical
number>,
" [<device
name>
:]
<filename>
"
Note: Only
FDn,
CMT,
or
RSn device name.
Abbreviated form:
WO. #
Explanation:
This
is
a statement to prepare for file write-in; it specifies the file's logical number
and name.
If
the <device
name>
is
omitted, processing occurs relative to the device specified
by
the
DEFAULT
statement.
When RS is specified for the device' name, the filename can be omitted.
Examples:
1 0
WOP
EN
#1,"
F
01
:
OAT
A"
..... Opens the
"DATA"
file defined to logical number 1 for write-in.
1 0 WOP
EN
#
1,
"R
S 1 : "
..... Output
by
the
PRINT
# command
is
set in RS-232C.
1 0
WOPEN
#2,
"DATA"
20
FOR
I
=1
TO
99
30
PRI
NT
#2,
40
NEXT
50
CLOSE
#2
60
END
..... 1 -
99
count
is
written into the file.
References:
PRINT # (page 49)
ROPEN # (page 46)
CLOSE # (page 53)
INPUT # (page 47)