I have a text file, test.txt
which has the following data:
content content
more content
content conclusion
==========
content again
more of it
content conclusion
==========
content
content
contend done
==========
I would like to get a list of chunks delimited by ==========
.
For the above example, I expect something like this:
foo = ["content content\more content\content conclusion",
"content again\more of it\content conclusion",
"content\content\contend done"]
Also, I would appreciate if someone can share a general process for performing this operation (if any).
Inspired by : Splitting large text file on every blank line