4
I have a large text file grouped with separate headers that I need to split into separate files.
For instance the file has headers like this:
--Heading 1--
some text
text
--Heading 2--
more text etc
--Heading 3--
asdf text
I need to split the large file into text files based on their headers.
So for the example, there would be a 3 file output.
Heading 1.txt:
--Heading 1--
some text
text
Heading 2.txt:
--Heading 2--
more text etc
Heading 3.txt:
--Heading 3--
asdf text
Does anyone know of a windows or max app/script that can do this?
Or maybe give instructions on how to write something like this in a programming language. I don't know python or java but maybe this is the time to learn. :)
thanks!