Quote:I could make a code to delete the line with the string but how to delete the line above and below also?You are going to have to find what line number/index the needle is on, so you can delete before and after the needle's line as well.
Recommended Tutorials: