Pythonic way to read file line by line?
<p>What's the Pythonic way to go about reading files line by line of the two methods below?</p>

<pre><code>with open('file', 'r') as f:
    for line in f:
        print line
</code></pre>

<p>or</p>

<pre><code>with open('file', 'r') as f:
    for line in f.readlines():
        print line
</code></pre>

<p>Or is there something I'm missing?</p>
