Skip to content

Instantly share code, notes, and snippets.

@cluelesscoder
Created August 20, 2012 19:04
Show Gist options
  • Save cluelesscoder/3406761 to your computer and use it in GitHub Desktop.
Save cluelesscoder/3406761 to your computer and use it in GitHub Desktop.
Python test file opening
import csv
testreader = csv.DictReader(open('C:/Documents and Settings/BJCREASY.SOA/Desktoptestcsv.csv', ''), dialect='excel')
for row in testreader:
print row
# if row['SERFF'] == csv.reader.next().row['SERFF']
# print 'Success'
# else:
# csv.reader.next()
# row1 = testreader.row
# row2 = csv.reader.next()
# if row2 == csv.reader.next()
# row3 = csv.reader.next()
raw_input()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment