how do you search text files for certain text and read that line only

thanks
trains