Loading file to string, no such file?
<p>I'm working on a python script to thoroughly mutilate images, and to do so, I'm replacing every "g" in the file's text with an "h" (for now, it will likely change). Here's the beginning, and it's not working:</p>

<pre><code>pathToFile = raw_input('File to corrupt (drag the file here): ')

x = open(pathToFile, 'r')
print x
</code></pre>

<p>After giving the path (dragging file into the terminal), this is the result:</p>

<pre><code>File to corrupt (drag the file here): /Users/me/Desktop/file.jpeg 
Traceback (most recent call last):
  File "/Users/me/Desktop/corrupt.py", line 7, in &lt;module&gt;
    x = open(pathToFile, 'r')
IOError: [Errno 2] No such file or directory: '/Users/me/Desktop/file.jpeg '
</code></pre>

<p>How can the file not exist if it's right there, and I'm using the <em>exact</em> filename?</p>
