Re: find specify string in text filePosted by Nancy on January 14, 2005 In Reply to: find specify string in text file posted by
vahid bahremand on January 06, 2005 Read in the textfile into a string variable S. var P: integer; SpecString: string; begin SpecString := 'your textstring'; P := Pos(SpecString, S); if P = 0 then ShowMessage(SpecString + ' not found) else ShowMessage('Your string starts at position ' + IntToStr(P); end; |
|