Cheers for the help, the second way looked to be the best in the end,
and thanks for the boolean idea

Mike



working_CSV =  "//filer/common/technical/Research/E2C/Template_CSV/
DFAExposureToConversionQueryTool.csv"

save_file = open("//filer/common/technical/Research/E2C/Template_CSV/
CSV_Data2.csv","w")

CSV_Data = open(working_CSV)
data = CSV_Data.readlines()
flag=False
for record in data:
    if record.startswith('"Transaction ID"'):
        flag=True
    if flag:
        save_file.write(record)
save_file.close()

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to