Getting the position of something in file

  • Thread starter Thread starter mutant
  • Start date Start date
M

mutant

Guest
Hi.
Can anyone tell me how to get a position of someting in the file? I need to find something in the file and then tell another function where it is.
 
You would have to open the file and read its contents in to a string, then use the .IndexOf method of the String class to get the position of the substring.
 
Im afraid I cant do that... Im trying to make myself a DLL that can read a value from a given byte to another byte and then make those bytes into a file, so its like extracting a file. I got everyting else but I just cant figure out how to get the startng and ending byte.
I dont think that will work good as a string, but im not sure.
 
Back
Top