Check Delphi help on the function: pos and the function: StrPos pos return the first occurance of a string within another string. StrPos does the same thing for a PChar string. If you want to perform this search on a file, you simply read through the file and use these functions to examine lines (or blocks) of the of file.
HTH, Glenn Lawler www.incodesystems.com

