Is there a way to append data to the beginning(first line) of a csv file without reading the whole file into memory? The file is huge and all I am trying to add is a header record to the file.
import csv
csv = open(csv, 'a')
csv.write(header_record)
csv.close()
seek(0)to point to the beginning of the file and then write the header.