Dear monks,
My question is related to file parsing within while loops. I have a large file containing many individual files all in the same format.

I want to extract certain features from each file which mainly is easy. My problem is when I need to extract everything between two markers in the file. I am struggling to get all the nice info between ORIGIN and // in each file.

This is how the file looks: How can I extract all the info between ORIGIN and // for each record??

Went to join the gridlock to see it
Held an eclipse party
Watched a live feed
I cn"t see tge kwubosd to amswr thus
I tried to see it, but 8000 miles of rock got in the way
What eclipse?
Wanted to see it, but they wouldn't reschedule it
Read the book instead