doubt on csv file

muttu2244 at yahoo.com muttu2244 at yahoo.com
Thu Dec 15 17:17:59 EST 2005


hi all

am trying to search whtr my string is found in a csv file, if its not
found i have to append it at the last row of a csv file, How can i do
that??

here is what am trying to do, first am trying to open it in a read
mode, and checking each row by row , if it is not found till my last
row, i want to append it to the last row , so how should i do that.

file = open ('C:\some.csv','r')
reader = csv.reader(file)
for row in reader:
    print row
    
How can i update at the last row.

thanks for the help
shiva




More information about the Python-list mailing list