Maybe something like this will work though I am not sure of my quotes and what to import
import shutil f = open(r'C:\Users\Owner\Desktop\mydata.txt', 'r') read_data1 = f.read() f.close() shutil.copy('C:\Users\Owner\Desktop\newdata.txt', 'C:\Users\Owner \Desktop\out.txt') file = open(r'C:\Users\Owner\Desktop\out.txt', 'w') file.write(text.replace(read_data1, "")) file.close() -- http://mail.python.org/mailman/listinfo/python-list