I confused how to handle this: I have a bunch of individual text files that I want to extract text from. The text that I want to extract is conveniently packaged between lines that say '*** START OF TEXT ***' and '*** END OF TEXT ***'. Should I do some sort of strtok trick with the asterisk-laden lines or is there another approach that someone can recommend?
An example of one of the original files follows:
//////////
Junk text appears at the beginning of the file. It is of variable length.
*** START OF TEXT ***
This is the text that I want to extract. It is of variable length
*** END OF TEXT ***
Junk text appears at the end of the file. It is of variable length.
//////////
- - picklefish - -
An example of one of the original files follows:
//////////
Junk text appears at the beginning of the file. It is of variable length.
*** START OF TEXT ***
This is the text that I want to extract. It is of variable length
*** END OF TEXT ***
Junk text appears at the end of the file. It is of variable length.
//////////
- - picklefish - -