In Python, given a URL to a text file, what is the simplest way to read the contents of the text file?
<p>In Python, when given the URL for a text file, what is the simplest way to access the contents off the text file and print the contents of the file out locally line-by-line without saving a local copy of the text file? </p>

<pre><code>TargetURL=http://www.myhost.com/SomeFile.txt
#read the file
#print first line
#print second line
#etc
</code></pre>
