Commodore VIC-20 User Manual page 269

Hide thumbs Also See for VIC-20:
Table of Contents

Advertisement

Chapter 8 Peripheral Devices
255
For example, to save a program called FILENAME on the Datassette,
you would type
SAVE "FILENAME"
and press
RETURN.
If you have pressed the
PLAY
and
RECORD
keys on the
Datassette, the Datassette will start operating. After your program has been
saved, the Datassette will stop, the cursor will start flashing again, and the
computer will display READY on the screen.
To load the program from the Datassette, type
LOAD "FILENAME"
If the
PLAY
button has been depressed, the Datassette will operate and the
computer will display
SEARCHING FOR
FI~ENAME
As it passes the various programs that precede the one being looked for, it
will display their names.
FOUND
OTHERFI~E
FOUND
WRONOIFI~E
FOUND
NEXTFI~E
When the program requested is found, it will display
FOUND
FI~ENAME
~OADING
WRITING DATA FILES
Writing program files into a Datassette file is a simple task. Putting
data into a Datassette file is almost as easy, but it does require a basic
understanding of how the information is put onto tape.
The most common method of storing data is by simply printing the data
one item at a time to the Datassette. This can· be done by entering the
following statements.
First, you will need to open a file.
10 OPEN lJ1J2J"DATA FILE"
This will open a Datassette file with the number
I
and the name DATA
FILE. When the file is closed, it will write an end-of-file marker onto the
tape, which indicates to the VIC 20 that no more records exist in the file.

Advertisement

Table of Contents
loading

Table of Contents