Is there any drawback of not closing the file after reading it?
<p>I often do not close the file after reading it</p>

<pre><code>for line in open(FileName):
    # do something
</code></pre>

<p>I also reopen the file again in the same program.</p>

<pre><code>for line in open(FileName):
    # do something else
</code></pre>

<p>My question is whether there are any drawbacks in this approach? 
I have seen posts that claim that file should be open with <code>with</code></p>

<pre><code>with open(FileName) as fp:
</code></pre>

<p>But what is the advantage of this approach?</p>
