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 "Transaction 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_CSV, 'rb') new_data = 0 # a counter to find where the line starts with "Transaction ID" reader = csv.reader(f) for data in reader: read data file write new CSV Cheers Mike -- http://mail.python.org/mailman/listinfo/python-list