Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to append data to csv file in python without replacing the already present text

import csv

row =['Eric', '60']

with open('people.csv','a') as csvFile:   #a to append to existing csv file
    writer = csv.writer(csvFile)
    csvFile.write("
")    #write your data to new line
    writer.writerow(row)
csvFile.close()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #append #data #csv #file #python #replacing #present #text
ADD COMMENT
Topic
Name
4+4 =