EasyManua.ls Logo

Sharp MZ-800 - Page 109

Sharp MZ-800
221 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
ROPEN
#
Format
ROPEN
#
<logical
number>,
‘‘[<device
name>:]
<filename>”’
<logical
number>
must
be
an
integer
from
1
to
127.
<device
name>
must
be
CMT,
RAM,
or
RSn.
Abbreviated
Format
Explanation
Example
RO.
#
The
ROPEN
#
statement
opens
a
file
for
input.
The
ROPEN
#
statement
assigns
<logical
number>
to
the
file
designated
by
<device
name>
and
<filename>.
<device
name>
may
be
omitted
when
the
default
device
or
the
device
specified
in
the
DEFAULT
statement
is
to
be
used.
‘“‘RSn:’’
specified
in
<device
name>
designates
the
RS-232C
interface
as
the
input
device
from
which
data
is
to
be
read.
10
ROPEN
#1,
“‘CMT:
DATA’’....
Opens
a
BSD
file
named
‘DATA’?
on
the
cassette,
TO!ROPEN
#1,
“RSG
ccaccccccasas
Sets
the
RS-232C
port
as
the
device
from
which
all
data
specified
in
the
INPUT
#1
statements
is
to
be
read.
10
ROPEN
#2,
‘‘DATA”’
20
FOR
Z=1
T0
99
30
INPUT
#2,A
40
PRINT
A
50
NEXT
Z
60
CLOSE
#2
70
END
The
above
program
reads
and
displays
the
contents
of
the
file
created
by
the
sam-
ple
program
given
for
the
WOPEN
#
statement.
INPUT
#,
WOPEN
#,
CLOSE
#
6-52

Other manuals for Sharp MZ-800

Related product manuals