SANKAR ., 11.01.2011 01:00:
I am reading a Test.txt (see atatchment) file using following code to get
the T2:

F =open('C:\Test.txt','r')
T1 = F.readlines()
for i in range(len(T1)):
        T2 = T1[i].split(',')
        print(T2)

Take a look at the "csv" module in the standard library.

Stefan

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to