Hi all

i am loading a File into a Byte Array with

Dim bytes As Byte() = My.Computer.FileSystem.ReadAllBytes(lstfilepaths.SelectedItem)


after that i`d like to search inside ths Byte Array 3 Bytes (e.g. 20FFBD) and return the exact Position inside the Array. It may happen that the 3 Bytes are available multiple Times inside this Array,so after the Array has been found the first Time i Need to continue searching until end of the Array. I want to return the Byte positions inside a TextBox to verify if there was a match.


Also if the Bytes have been found i Need to replace theese 3 Bytes with 3 other Bytes in all found Locations.


Can somebody please help me out there please ?


Thans in Advance