title: error "no such file or directory" when reading in csv file in python
body: <p>Currently I am trying to read in a csv file using the csv module in python. When I run the piece of code below I get an error that states the file does not exist. My first guess is that maybe, I have the file saved in the wrong place or I need to provide pyton with a file path. currently I have the file saved in C:\Documents and Settings\eag29278\My Documents\python test code\test_satdata.csv. </p>
  
  <p>one side note im note sure wether having set the mode to 'rb' (read binary) was the right move.</p>
  
  <pre><code>import csv
  with open('test_satdata.csv', 'rb') as csvfile:
      satreader = csv.reader(csvfile, delimiter=' ', lineterminator=" ")
      for row in satreader:
          print ', '.join(row)
  </code></pre>
  
  <p>Here is the errror code.</p>
  
  <pre><code>Traceback (most recent call last):
  File "C:/Python27/test code/test csv parse.py", line 2, in &lt;module&gt;
      with open('test_satdata.csv', 'rb') as csvfile:
  IOError: [Errno 2] No such file or directory: 'test_satdata.csv'
  </code></pre>