Python Type Error (probably simple)
<p>I'm trying open a txt file and read it, but I'm getting a type error and I'm unsure why.  If you you could please provide a reasoning along with the correct syntax, I'm trying to get a better grasp of what's going on underneath.  Here's the code, it's pretty simple I think:</p>

<pre><code>from sys import argv

script = argv
filename = argv

txt = open(filename)

print "Here's your file %r" %filename
print txt.read()
</code></pre>

<p>Muchas Gracias</p>
