Hi All,
I want to read in a CSV file, but then write out a new CSV file from a
given line..
I'm using the CSV reader and have the the line where i want to start
writing the new file from begins with
"Transactio n ID",
i thought it should be something along the lines of below.. obvioulsy
this doesn't work but any help would be great.
import csv
f = file(working_CS V, 'rb')
new_data = 0 # a counter to find where the line starts with
"Transactio n ID"
reader = csv.reader(f)
for data in reader:
read data file
write new CSV
Cheers
Mike
I want to read in a CSV file, but then write out a new CSV file from a
given line..
I'm using the CSV reader and have the the line where i want to start
writing the new file from begins with
"Transactio n ID",
i thought it should be something along the lines of below.. obvioulsy
this doesn't work but any help would be great.
import csv
f = file(working_CS V, 'rb')
new_data = 0 # a counter to find where the line starts with
"Transactio n ID"
reader = csv.reader(f)
for data in reader:
read data file
write new CSV
Cheers
Mike
Comment