I'm working on a project where I display questions in Textboxes. Underneath each one of them there are 4 checkboxes and the user has to select the one that answers to the question.
Is there any way I can just put all my questions, answers, etc in a .txt file and load them from there?
I don't want to have have to write a case
for each and every question(I have 120 questions approximately).
My way of doing it so far:
case 5: // Multiple Answers
txtQuestion.Text = "What are the characteristics of the " +
"Main method? (Choose two)";
grpSingleChoice.Visible = false;
grpMultipleChoice.Visible = true;
chkAnswer1.Text = "A. It must always return void";
chkAnswer2.Text = "B. It is always the first method inside the " +
"main class of a program";
chkAnswer3.Text = "C. It is the start and end point of a program";
chkAnswer4.Text = "D. It must always be passed an array of strings " +
"as in static void Main(string[] args)";
chkAnswer5.Visible = true;
chkAnswer5.Text = "E. It must be created inside of a class" +
"or a structure";
break;