title: Opening a txt file in Python on a Mac
body: <p>I am trying to open and read in the data from a txt file using Python. So far I have the following code:</p>
  
  <pre><code>infile = open("/Users/jessicazahra/Desktop/University/Week\ 7/unsorted_fruits.txt", "r")
  outfile=open("/Users/jessicazahra/Desktop/University/Week\ 7/sorted_fruits.txt","w")
  </code></pre>
  
  <p>I keep receiving an error stating:  </p>
  
  <pre><code>File "/Users/jessicazahra/Desktop/University/Week 7/sort_fruits.py", line 1, in &lt;module&gt;
      infile = open("/Users/jessicazahra/Desktop/University/Week\ 7/unsorted_fruits.txt", "r")
  FileNotFoundError: [Errno 2] No such file or directory: '/Users/jessicazahra/Desktop/University/Week\\ 7/unsorted_fruits.txt'
  </code></pre>
  
  <p>I am using a mac and Python 3.4.1. I have a feeling something is wrong with my directory path but I cannot find what the problem might be though. The file is placed in a folder on my desktop. Any help would be much appreciated!!</p>