I want to know how can I open up a file, look for specific text in it, and remove it.
For example
You open up a file it contains:
TEXT
TEXT
TEXT
<!-- Remove Start -->
more text to be removed here.
<!-- Remove End -->
TEXT
TEXT
TEXT
<!-- Remove Start -->
more text to be removed here.
<!-- Remove End -->
Once you are done it's only supposed to have
TEXT
TEXT
TEXT
TEXT
TEXT
TEXT
So you would have removed the text or paragraphs between the <!-- Remove Start --> and <!-- Remove End --> and you would also remove the <!-- Remove Start --> and <!-- Remove End -->
And it should be able to remove multiple instances of the text as shown in the example. Is this possible? How easy is it? Can anyone give me an example of how to do this?
For example
You open up a file it contains:
TEXT
TEXT
TEXT
<!-- Remove Start -->
more text to be removed here.
<!-- Remove End -->
TEXT
TEXT
TEXT
<!-- Remove Start -->
more text to be removed here.
<!-- Remove End -->
Once you are done it's only supposed to have
TEXT
TEXT
TEXT
TEXT
TEXT
TEXT
So you would have removed the text or paragraphs between the <!-- Remove Start --> and <!-- Remove End --> and you would also remove the <!-- Remove Start --> and <!-- Remove End -->
And it should be able to remove multiple instances of the text as shown in the example. Is this possible? How easy is it? Can anyone give me an example of how to do this?