So I have a CSV file with a bunch on IP\'s in it:
192.168.0.1,192.168.0.2,192.168.0.3,192.168.0.4,192.168.0.5,192.168.0.6,192.168.0.7,192.168.0.8,192.168.0.9
Why don't you just append a new row?
fd = open('file.csv','a') fd.write(yourCsvRowWithNewIP) fd.close()