Research. Use Google. I won't do the work for you. You need to attempt it yourself. If you run into specific problems, post your code and we'll go over it. The file I/O can be done in a few lines of code. If you're only deleting one line of text, the entire script should probably be no longer than 10 - 20 lines.