>Thanks for the code, I am in a hurry to implement it *g*
Keep in mind that it doesn't have any error handling. You'll have to implement it yourself.
>
>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?
The whole idea of the code to read the file in the memory (similar to FILETOSTR()) and than analyze it.
--sb--