I am trying to read a text file that contains some questions and an answer.
The structure of the text file is
q1 my question
i want to create a question object, and write a method that returns a question object to read the file so i can use it for multiple questions. Im confused on how to read the file .