title: Python not reading file lines
body: <pre><code>file=open('in.txt','r')
  print((file.readlines()).pop(20)[:-1])
  for line in file:
      print(line[:-1])
  </code></pre>
  
  <p>I have this program and when I run it, it displays line 21 of my file and that's it. I don't know the technical terms for it but whenever I use '.read()' or 'readline()' or 'readlines()' and THEN try to read from the file directly, it never works, why is that? What's going on? I don't get an error code, it just doesn't display anything for the 'for' loop.</p>