Hi Sergey
>The FREAD can read up to 64KB at once.
Thanks for the code, I am in a hurry to implement it *g*
What happens if the string to be searched straddles the boundry of 2 FREAD, half in the first and another half in the second, ie. assuming there is only one instance of the string the in file?