title: Reading from a file with Python
body: <p>For quite a while I have been trying to make a quiz game, that will read questions and answers from a text file and display them on a screen. I used the following function:</p>
  
  <pre><code>def start_quiz() :
      text_file = open("quiz_python.txt", "r", encoding = "utf-8")
      for lines in text_file :
          print(lines)
  </code></pre>
  
  <p>I make a .txt file through a standart Notepad word processor and save the file (in the same directory) with an "Utf-8" encoding. However, when I launch the program, it crashes at the very beginning. And what is more suprising, that when I run that program with F5 in IDLE, it works perfectly! At that moment I don't know what to think about all this, because it's quite strange. Any suggestions?</p>
  
  <p>Thanks,
  Victor.  </p>