in reply to delete a line from a file

Please enclose your code with code tags. Otherwise it is very hard to read the code!