You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This creates a file called output.txt, SEQ, W instead of a writable file called output.txt:
10OPEN3, 8, 2, "output.txt, SEQ, W"20PRINT#3, "Hello from Commodore Basic"30PRINT#3, "This is a line"40PRINT#3, "This is another line"50PRINT#3, "Goodbye!"60CLOSE3
Correspondingly, this cannot be used to read output.txt:
I found this example. It looks like this differs from the C64 documentation I found on the C64 Wiki. I got this working:
10OPEN1, 1, 1, "output.txt"20PRINT#1, "Hello from Commodore Basic"30PRINT#1, "This is a line"40PRINT#1, "This is another line"50PRINT#1, "Goodbye!"60CLOSE170OPEN1, 1, 0, "output.txt"80INPUT#1, A$
90PRINT A$
100IF ST =0THENGOTO80110CLOSE1
This creates a file called
output.txt, SEQ, W
instead of a writable file calledoutput.txt
:Correspondingly, this cannot be used to read
output.txt
:Instead, it tries to read a file called
output.txt, SEQ, R
.The text was updated successfully, but these errors were encountered: