Here is an example of searching for text using the binary search method:
https://groups.google.com/g/microsoft.public.vb.general.discussion/c/2zKWlqBaQs4
/m/zikzT2OXIEAJ
You basically have to convert your search text into binary format
to apply it to the file data which is also in binary format.