How to return the line that contains specific information from a file?

Yes, and still the same error