M
muttu2244
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
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