10-23-2004, 07:44 AM
hey quick question.
i have made a music generator and the user tells it what notes to play then it stores the notes played in the variable notes$. I want to give the user option to save it to file. can i just go:
****************************
input " want to save"; yorn$
if yorn$ = "yes" then goto save
if yorn$= "no" then goto bye
save:
cls
input "save as?"; filename$
open filename$ ".txt" for output as #1 ' i know this doesnt work
print #1, notes$ ' but this is what i want to
close ' happen
****************************8
i tried that but it wont save. can someone help.
i have made a music generator and the user tells it what notes to play then it stores the notes played in the variable notes$. I want to give the user option to save it to file. can i just go:
****************************
input " want to save"; yorn$
if yorn$ = "yes" then goto save
if yorn$= "no" then goto bye
save:
cls
input "save as?"; filename$
open filename$ ".txt" for output as #1 ' i know this doesnt work
print #1, notes$ ' but this is what i want to
close ' happen
****************************8
i tried that but it wont save. can someone help.