"David Brown" <david at no.westcontrol.spam.com> writes: > To do a binary search, the file you are searching through must be ordered. You misunderstand. He does not want to perform a binary search, but a search in binary (rather than text) data. I interpreted this as meaning that he wants to perform a substring search. Regards, Martin