Find
Find[stream,"text"] finds the first line in an input stream that contains the specified string.
Find[stream,{"text1","text2",…}] finds the first line that contains any of the specified strings.
Please visit the official Wolfram Language Reference for more details and examples on core symbols.