A file ProgramInput.txt has this as its content
<start>
content
...
...
...
<stop>
<start>
content
...
...
<stop>
and so on
How do I iterate over the txt file , so that I take out the content between each and and store it in a different file in each iteration ?
The easiest way, I can think of it is
Basically, make use of the pattern behavior and store in a list, and then use the pattern again to get the sections.