Name is saved in n001.dat, password is saved in p001.dat.
and this is my problem: I want to make my program read n001.dat and p001.dat, and is the name and password that you wrote same as n001.dat and p001.dat
Code: Select all
input "-", startplay$
if startplay$ = "start game" then
input "Name: ",name$
input "Password: ",pass$
open "n001.dat" for output as #1
print #1, name$
close #1
open "p001.dat" for output as #1
print #1, pass$
close #1
end if
if startplay$ = "play game" then
input "Name: ",playname$
end if
if playname$ = name$ then
input "Password: ", playpass$
end if
if playpass$ = pass$ then
end if