def ParseQuestionFile(path): f = open(path, "r") lines = f.readlines() f.close() questions = [] for l in lines: if l.startswith('//') or l == "\n": continue questions.append(Question.ParseLine(l)) return questions