I'm trying to make a program that will take categories, questions, and answers and put it into a text file as something like
"(variable for categeory)=category put into program)"
"c1$=history"
Here is my code so far
c1$=""
c2$=""
c3$=""
c4$=""
c5$=""
input "What is your first category?",c1$
input "What is your second category?",c2$
input "What is your third category?",c3$
input "What is your forth category?",c4$
input "What is your fifth category?",c5$
input "What is your 10pt. question for category #1?",q1$
input "What is your 20pt. question for category #1?",q2$
input "What is your 30pt. question for category #1?",q3$
input "What is your 40pt. question for category #1?",q4$
input "What is your 50pt. question for category #1?",q5$
input "What is your 10pt. question for category #2?",2q1$
input "What is your 20pt. question for category #2?",2q2$
input "What is your 30pt. question for category #2?",2q3$
input "What is your 40pt. question for category #2?",2q4$
input "What is your 50pt. question for category #2?",2q5$
input "What is your 10pt. question for category #3?",3q1$
input "What is your 20pt. question for category #3?",3q2$
input "What is your 30pt. question for category #3?",3q3$
input "What is your 40pt. question for category #3?",3q4$
input "What is your 50pt. question for category #3?",3q5$
input "What is your 10pt. question for category #4?",4q1$
input "What is your 20pt. question for category #4?",4q2$
input "What is your 30pt. question for category #4?",4q3$
input "What is your 40pt. question for category #4?",4q4$
input "What is your 50pt. question for category #4?",4q5$
input "What is your 10pt. question for category #5?",5q1$
input "What is your 20pt. question for category #5?",5q2$
input "What is your 30pt. question for category #5?",5q3$
input "What is your 40pt. question for category #5?",5q4$
input "What is your 50pt. question for category #5?",5q5$
if file exist("questions.txt")=1
input "Would you like to delete the current question file?(y=yes,n=no)",delete$
if delete$=y then delete file "questions.txt"
if delete$=n
print "You must delete the current question file or rename it to make a new question file."
input "Would you like to delete the current question file, or would you like to make a question file and rename it manually?(d=delete,r=rename)",rename$
if rename$="d" then delete file "questions.txt"
if rename$="r" then make file "questions2.txt":print "your file has been saved under 'questions2.txt'"
endif
endif
if file exist(questions.txt)=0
make file "questions.txt"
open to write 1,"questions.txt"
write string 1,c1$
endif
The write string is the thing I don't get.
Can anyone tell me what I should do?
(Any other suggestions would be appreciated)
Watson you idiot!