Search for text in a file
Is there any way to search for text in a file (not part of the program) and then read the following text until it sees a certain line of text. For example:
Hello World. How are you today? I am fine.
is the text file, and I want the program to search for 'World.' then read the text (and use it, say as an output) and stop when it sees 'I am', without knowing what is between. Thank you.
__________________
YOU JUST LOST THE GAME!
|