Python - File CSV file

Introduction

Use the standard library's csv module.

It parses and creates CSV (comma-separated value) data in files and strings.

import csv 
rdr = csv.reader(open('csvdata.txt')) 
for row in rdr: print(row)