EasyManuals Logo

Tandy 1000 Basic Reference Manual

Default Icon
411 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 #26 background imageLoading...
Page #26 background image
Chapter
21
Loading
MS-DOS
and
BASIC
Examples
BASIC
DAILY >DAILY.OUT
initializes BASIC and runs the program DAILY. Redirects all
output, normally sent to the screen, to the file DAILY.OUT.
BASIC
DAILY <DAILY.IN
initializes BASIC
and
executes the program DAILY. DAILY re-
ceives all input, normally entered through the keyboard, from
the file DAILYJN.
BASIC
SAMPLE
<TSTDATA.IN >TSTDATA.OUT
initializes BASIC and executes the program SAMPLE. SAMPLE
receives input from TSTDATA.IN and sends output to
TSTDATA. OUT.
BASIC
PAYROLL
<WEEK25
>>YTDTOTAL
initializes BASIC and executes the program PAYROLL. PAY-
ROLL receives input from the file WEEK25. The output is ap-
pended to the file YTDTOTAL.
Hints
for
redirection
of
input and output:
0
File input from the KYBD: device still reads from the
0
File output to the SCRN: device still outputs to the screen.
0
BASIC still traps keys when you use the
ON
KEY0
[CsRLjm]
tells BASIC to close all open files, then issue the
message “Break
in
line
xxxx”
to
standard output. Control re-
turns to
MS-DOS.
0
Redirected input continues until BASIC receives
a
[CTRLJ[T].
This condition can be tested by the EOFO function. If the in-
put file
is
not terminated by
a
[CTRL][T]
or
a
BASIC file input
statement tries to read past the end-of-file, BASIC closes any
open files and issues the message “Read past end” to standard
output. Control returns to MS-DOS.
e
The printer echo key combination
([CTRL][PRlNT)),
which nor-
mally causes all output on the display to be echoed on LPTl:,
will not work if you redirect standard output.
keyboard.
statement
.
24

Table of Contents

Other manuals for Tandy 1000

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Tandy 1000 and is the answer not in the manual?

Tandy 1000 Specifications

General IconGeneral
ProcessorIntel 8088
Processor Speed4.77 MHz
RAM128 KB (expandable to 640 KB)
Operating SystemMS-DOS 2.11
ManufacturerTandy Corporation
Release Year1984
StorageSingle or double 5.25" floppy disk drive (360 KB), optional hard drive
SoundTandy 3-voice sound
PortsParallel, Serial
GraphicsCGA (Color Graphics Adapter)
Graphics Modes320x200, 640x200

Related product manuals