I am trying to get the data from a CSV file into variables. I have used DictReader to get the field names and I can report them. When I attempt to look at the data, every row shows the combination of fieldname:data. How do I get the data out? linelist=open( "C:/Users/rjoseph/Documents/Projects/Bootstrap Plan Design Tool/Sandbox/line_list_r0a.csv", "rb" ) csvDictReader=csv.DictReader( linelist, dialect='excel' ) for data in csvReader: print data[0] print data[1] print data[2] print data[3] linelist.close()
Thanks, ray -- http://mail.python.org/mailman/listinfo/python-list