|
-
Aug 12th, 2018, 05:08 PM
#1
Thread Starter
Member
Find 3 Bytes in Byte Array
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
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|