Used the code below to read a binary file into byte array.
How can I search/replace a pattern in bytes() ?
Code:
Private Sub cmdTest_Click()
Dim fileNum As Integer
Dim bytes() As Byte
fileNum = FreeFile
Open "C:\users\xxxx\desktop\wp.bin" For Binary As fileNum
ReDim bytes(LOF(fileNum) - 1)
Get fileNum, , bytes
Close fileNum
End Sub