To save yourself time and aggravations convert your file to small database - MS Access or perhaps MS SQL Express.
Otherwise read file line-by-line and check if "your text" is in the current line (instr function will do it).