I'd like to find a string "COMMENT" in a txt file and can I delete this line.
If you have any examples of
How to Find string in txt file and delete line with this string
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

VulpesRank #55 · 29.2K reputationPosted Aug 25, 2012, 9:17 AM EDT
You might want to use StartsWith() instead of Contains() and to do a case insensitive search by converting everything to (say) lower case.