def readPollFile(self,filename):
        allPolls = []
        attencePoll=AttendancePoll()
        self.setAttencePolls(attencePoll)
        with open(filename, encoding='utf-8') as csvfile:  # Open the CSV file
            readCSV = csv.reader(csvfile, delimiter=',')
            for row in readCSV: # Read each row in the fil,
                if row[4]=="Are you attending this lecture?":
                    date=row[3].split(" ")
                    date[0:]=[" ".join(date[0:-1])]
                    # if(date[0])
                    # print(date)
                    if len(row[3].split(" ")) < 4:  # basligi siliyor
                        continue
                    if int(row[3].split(" ")[3].split(":")[0]) > 9:
                        ten = row[4:]  # saat 10 ve sonrasi yapilan poll
                        for row in ten:
                            print(row)
                    if int(row[3].split(" ")[3].split(":")[0]) == 9:
                        nine = row[4:]  # 9 ve sonrasi yapilan poll

                    attencePoll.setStudentList(std)
                    attencePoll.setPollName(date[0])



                elif (len(row[4]) > 5 and row[4] != "Are you attending this lecture?"):
                    eachPoll=[]
                    for i in range(4,len(row)-2,2):
                        if(row[i] not in eachPoll):
                            eachPoll.append(row[i].rstrip())
                            if(len(eachPoll)==int((len(row)-5)/2) and (eachPoll not in allPolls)):
                                allPolls.append(eachPoll)

        list(dict.fromkeys(allPolls[0]))
        list(dict.fromkeys(allPolls[1]))
        print(allPolls[0])
        print(allPolls[1])

        for i in range(0,len(allPolls)):
            questionPoll = QuizPoll()
            for p in(allPolls[i]):
                newQuestion=Question()
                newQuestion.setQuestionText(p)
                questionPoll.addQuestions(newQuestion)
            self.setQuizPollList(questionPoll)

        with open(filename, encoding='utf-8') as csvfile:  # Open the CSV file
            readCSV = csv.reader(csvfile, delimiter=',')
            for row in readCSV: # Read each row in the fil,
                if (len(row[4]) > 5 and row[4] != "Are you attending this lecture?"):
                    quizStudent=Student()
                    try:
                        quizStudent.setStudentName(self.findStudent(row[1]).getStudentName())
                        quizStudent.setStudentSurname(self.findStudent(row[1]).getStudentSurname())
                        print(str(quizStudent)+"created")
                        for i in range(4,len(row)-1,2):
                            eachQuestion=Question()
                            eachQuestion.setQuestionText(row[i])
                            print(str(eachQuestion)+"created")
                            newAnswer=Answer()
                            if ";" in row[i+1]:
                                answerList=row[i+1].split(";")
                                for ea in answerList:
                                    newAnswer.addAnswer(ea)
                                    print(str(newAnswer)+"created")
                            else:
                                newAnswer.addAnswer(row[i+1])
                                print(str(newAnswer)+"created")
                            eachQuestion.AddAnswer(newAnswer)
                            quizStudent.setQuestionList(eachQuestion) 
                        self.__quizStudentList.append(quizStudent)
                    except AttributeError:
                        print("")