in reply to Deletes All Records not just one

My code deletes all the records not just the one line I need any solutions?

Start with a description of what you think your code (del) does, and a small example (with very small input file) of how to use it (del), and then employ Basic debugging checklist (with Read this if you want to cut your development time in half! )

Fix any warnings you get, repeat