EasyManua.ls Logo

Apple IIe - Page 218

Apple IIe
320 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...
218
Apple lie Users
Handbook
180
REM
RETURN CHARACTER ENCOUNTERED
I
190 PRINT CHR$(1);
X$
200
END
Notice
the
inclusion
of
the
CHR$(1)
prior
to
X$
in
line
190. This
character
is
included
in
the
PRINT statement because
GET
ignores
the
first character
that
is
printed
following
its
execution
.
If
this character
is
Ctrl-D
,
the
DOS
command
that
follows
will
be
printed
rather
than
executed
as
a DOS
command
. The CHR$(1)
in
the
PRINT statement in
line
190 can
be
ignored
as
it
has
no
special meaning. This allows
the
program
to
function
properly.
Closing a Sequential File
Once
a
file
has
been
opened,
it
should
be closed. Failing
to
close
a
file
can result
in
the
loss
of
data in
the
file
left
open
as
well
as
possible loss
of
data
on
another
diskette.
Configuration
CLOSE
[ filename ]
When
CLOSE
is
used
without
a filename parameter, all
open
files
on
all diskettes
will
be
closed.
If
filename
is
specifi'ed
with
CLOSE
,
the
specified
file
will
be closed.
APPEND
The DOS APPEND
command
allows
the
user
to
place
the
file
pointer
for
a sequential
file
at
the
end
o·f
the
last data item. Since
the
file
pointer
is
reset after a
file
has
been closed and
re-
opened
, APPEND
is
a useful
command--especially
in situations
where
the
user wishes
to
add text
to
the
end
of
a sequential file.
Configuration
APPEND filename [ ,
Sx,
Vx,
Dx]
The APPEND
command
will
place
the
fileJ>0inter
to
the
first
character
position
beyond
the
end
of
the
fil
\
If
data
is
written
to

Other manuals for Apple IIe

Related product manuals