csv files

https://www.udemy.com/blog/python-csv/

http://www.pythonforbeginners.com/systems-programming/using-the-csv-module-in-python/

import csv

filepath = 'C:\Temp\data.csv'

dataFile = open(filepath, 'rb')

reader = csv.reader(dataFile)

rownum = 0

for row in reader:

    #Save header row.

    if rownum == 0:

        header = row

    else:

        colnum = 0

        for col in row:

            print '%-8s: %s' % (header[colnum], col)

            colnum += 1

            

    rownum += 1

    

dataFile.close()