Commodore 64 User Manual page 121

Hide thumbs Also See for 64:
Table of Contents

Advertisement

To retrieve the information, rewind the tape, and try this:
10 PPIHT "READ -TAPE- PROGRAM"
20 nPEN 1.1.0."DATA FILE"
30 PRINT " FILE OPEN"
4
PRINT
50 INPUT#1. AS
60 PRINT AS
70 IF AS = "STOP" THEN END
80 GOTO 40
Again, the file "DATA FILE" first must be OPENed. In line 50 the pro-
gram INPUTs A$ from tape and also PRINTs A$ on the screen. Then the
whole process is repeated until "STOP" is found, which ENDs the pro-
gram.
A variation of GET-GET#-can also be used to read the data back
from tape. Replace lines 50-80 in the program above with:
50 GET#1. AS
60 IF AS = "" THEN END
70 PRINT A$. RSC(A5'
80 GOTO 50
111

Hide quick links:

Advertisement

Table of Contents
loading

Related Products for Commodore 64

Table of Contents