Finding and deleting rows in text file programatically
Posted on 2012-08-29
I have many text files with consisting of a records (rows) beginning with specific segment ids.
I have the need to find these rows containing specific segment id's at the beginning of the row. Once found the line/row needs to be deleted, i.e., not leaving a blank line.
I want to open each respective text file in a loop (like VB macro in word) and delete all rows beginning with CCC, DDD and EEE leaving no blank lines.