Download Print this page

Radio Shack TRS-80 Model II Reference Manual page 138

Disk operating system
Hide thumbs Also See for TRS-80 Model II:

Advertisement

Modell! TRSDOS
G
Get Disk File into RAM Buffer
This command lets you load text stored in a disk file into the
RAM
buffer.
Then you can send it to the host program via the transmit from
RAM
command. The previous contents of the
RAM
buffer are lost.
The disk file can contain fixed- or variable-length records, and fixed length
records can have any length. However, only
ASCII
files should be loaded and
sent. You can send
BASIC
programs as long as you saved them with the A
(ASCII)
option.
For example, suppose you have created a document stored in the file
DOCUMENT/TXT.
You want to send it to the host program. To get the file into
the
RAM
buffer, type:
_ ......- Et,rrE
l:~ IVIF~NU
GELE·:
CT I ON
G CENTER)
ENTER FILESPEC (1-34)
CENTER)
TERMINAL
will load the file and return to the menu. The
RAM
buffer will be
closed.
If the host program is ready to accept data, you can now send it with the X
command. After transmission is complete,
TERMINAL
will go to the
interactive terminal mode.
C
Copy RAM Buffer to Disk
This command creates a disk file copy of the text in the
RAM
buffer. The new
file will have a record length of one. Use this command to save data that has
been received into the RAM buffer in the interactive terminal mode. To
minimize hookup time, you will probably want to do this after ending the
connection to the host program. Or if the
RAM
buffer is full, save it in a disk
file, then reset it and re-open it to accept more data.
For example, suppose you have just received a report in the interactive
terminal mode, and you want to save it in a disk file named
REPORT.
Type:
..._..-
EN'rEr~
MENU
op'r ION
C
(ENTER)
ENTER FILEGPEC (1-34)
REPORT
(ENTER)
The new file will be created (if
REPORT
already exists, it will be overwritten
with the new data), and the
RAM
buffer contents and status will be
unchanged.
To stop the copy process, press
(BREAK).
The disk file will be closed and you
will be returned to the menu.
174

Advertisement

loading