How can I delete a line from a textfile via code?