Delete Unwanted Lines from Text File.

Hi,

I tried this script to remove the unwanted lines from the text file without opening it but the result / output fails.
Only the first line gets deleted others are not. Any one has a fast and easy script of doing it.

Secondly the Row in text file where Total :- one row is blank and one contains the 'Amount of WithDrawal of Each' column has figures, I need to delete the empty row where the amount is empty.

I still need some help in the script, the text file contains some lines like Card No : xxxxx (xxxxx =numeric value) I want to modify the colon ':' to '-' dash, only for those lines "Card No : " and (2) Text file has DATE :dd/mm/yyyy which I want to verify with system date and if any mismatch warn it and then the script to hand over to next macro instead of saving the text file.