Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- infile = open(csvfile, 'r')
- count = 0
- for line in infile.readlines():
- count = count + 1
- print line
- print count
- import csv
- probeFile = csv.reader(open(csvfile, 'rb'), dialect='excel', delimiter=',')
- for row in probeFile:
- print ', '.join(row)
- Traceback (most recent call last):
- File "ProbeConverter.py", line 16, in <module>
- for row in probeFile:
- _csv.Error: new-line character seen in unquoted field - do you need to open the file in universal-newline mode?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement