What's new

.NET Search for value, if found return offset address

  • Thread starter Kings360s
  • Start date
  • Views 295
Kings360s

Kings360s

Enthusiast
Messages
303
Reaction score
41
Points
85
Sin$
7
If I read a .bin into an array I can search for specific values?

Dim bytes = My.Computer.FileSystem.ReadAllBytes(
"C:/Documents and Settings/selfportrait.txt")
TextBox1.Text = Text.FromStream(New IO.MemoryStream(bytes))

How would I get the offset address of the value if found?

I need to repeat this process through the entire file recording all the offsets where a value is found. I really could use some help with the code. or lack of. I couldn't find anything on stackoverflow.
 
Top Bottom
Login
Register