EasyManua.ls Logo

Commodore 64 - Page 117

Commodore 64
176 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...
To retrieve the information, rewind the tape, and try this:
19 PRINT "READ-TAPE-PROGRAt1"
29 OPEN 1,1,9,"DATA FILE"
39 PRINT "FILE OPEN"
49 PRINT
59 INPUT#l, A$
69 PRINT A$
70 IF A$ = "STOP" THEN END
89 GOTO 49
Again, the file "DATA FILE"first must be OPENed. In line 50 the pro-
gram INPUTs A$ from tape and also PRINTsA$ 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:
59 GET#l, A$
69 IF A$ = "" THEN END
79 PRINT A$, ASC(A$)
89 GOTO 59
111

Table of Contents

Other manuals for Commodore 64

Related product manuals