EasyManuals Logo

Sharp MZ-800 User Manual

Sharp MZ-800
221 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #108 background imageLoading...
Page #108 background image
WOPEN
#
Format
WOPEN
#
<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
See
also
wo.
#
The
WOPEN
#
statement
opens
a
BSD
file
for
output.
It
also
assigns
a
logical
number
and
name
to
the
file.
<device
name>
may
be
omitted
when
the
default
device
or
the
device
specified
in
the
DEFAULT
statement
is
to
be
used.
Specifying
RSn
as
<
device
name>
causes
output
to
be
sent
to
the
RS-232C
device.
10
WOPEN
#1,
‘‘CMT:DATA”’....
Opens
a
file
under
the
name
‘‘DATA”’
for
out-
put
and
assigns
logical
number
|
to
that
file.
..
After
this
statement
is
executed,
all
output
from
PRINT
#1
statements
is
sent
to
the
RS-232C
port.
10
WOPEN
#1,
‘‘RS1:"'
10
WOPEN
#2,
‘‘DATA’’
20
FOR
Z=1
TO
99
30
PRINT
#2,
Z
40
NEXT
Z
50
CLOSE
#2
60
END
The
above
sample
program
writes
numbers
1
to
99
into
the
specified
file.
PRINT
#,
ROPEN
#,
CLOSE
#
PRINT
#
Format
PRINT#
<logical
number>,
<data>
[,
<data>]
...
Abbreviated
Format
Explanation
Example
See
also
24
The
PRINT
#
statement
writes
data
sequentially
to
the
file
that
is
opened
for
out-
put
with
a
WOPEN
#
statement.
<logical
number>
must
be
the
file
number
used
in
the
WOPEN#
statement.
<data>
may
be
numeric
or
alphanumeric.
10
WOPEN
#1,
““CMT:DATA2"
20
PRINT#1,
1,
2,3
30
CLOSE#1
40
END
This
sample
program
writes
numeric
data
1,
2,
and
3
into
file
‘‘DATA’’.
The
file
has
the
logical
number
1
and
is
opened
for
output.
WOPEN
#,
CLOSE
#
6-51

Other manuals for Sharp MZ-800

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Sharp MZ-800 and is the answer not in the manual?

Sharp MZ-800 Specifications

General IconGeneral
BrandSharp
ModelMZ-800
CategoryDesktop
LanguageEnglish

Related product manuals