in reply to find the string in the file and print its subsequent strings
To better help you, it helps us to see your code.
Can you please post the code you have and tell us how that code fails to do what you need?