Oh wow.. I totally missed that... nevermind.. ignore that question =D<br><br><div><span class="gmail_quote">On 10/19/06, <b class="gmail_sendername">Danny Yoo</b> <<a href="mailto:dyoo@hkn.eecs.berkeley.edu">dyoo@hkn.eecs.berkeley.edu
</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>>> file('filename.txt').readlines()[-1]<br><br>> Not to hijack the thread, but what stops you from just putting a
<br>> file.close() after your example line?<br><br><br>Which file should file.close() close? The problem is that we don't have a<br>handle on the particular file we want to close off.<br></blockquote></div><br>