Posted By

headsheez on 02/12/10


Tagged


Versions (?)

initial csv print routine


 / Published in: Python
 

  1. import csv
  2.  
  3. csvReader = csv.reader(open('dat.csv'))
  4. colhead=csvReader.next()[:-1]
  5. print colhead
  6. for row in csvReader:
  7. print row

Report this snippet  

You need to login to post a comment.