I have some code for deleting certain contents of a file, and when I run the deleting, it adds an extra line at the end. Is there a better way that I can do this?
<