title: Python readlines not returning anything?
body: <p>I have the following code:</p>
  
  <pre><code>with open('current.cfg', 'r') as current:
      if len(current.read()) == 0:
          print('FILE IS EMPTY')
      else:
          for line in current.readlines():
              print(line)
  </code></pre>
  
  <p>The file contains this:</p>
  
  <pre><code>#Nothing to see here
  #Just temporary data
  PS__CURRENT_INST__instance.12
  PS__PREV_INST__instance.16
  PS__DEFAULT_INST__instance.10
  </code></pre>
  
  <p>For some reason though, <code>current.readlines()</code> just returns an empty list every time. </p>
  
  <p>There is probably a stupid mistake or typo in the code, but I just cannot find it. Thanks in advance.</p>