I can read/write a random access binary file.
Does anyone know how to do a search?
Is it a case of opening the file, reading the records searching as I go and then storing the mathed records in a variable.
Printable View
I can read/write a random access binary file.
Does anyone know how to do a search?
Is it a case of opening the file, reading the records searching as I go and then storing the mathed records in a variable.
davidrobin:
I'm not terribly proficient in VB, but you say you have an understanding of the file R/W access part:
(see) Random File Access
(see) Byte Data Type
Read the Binary file into an array of "Byte Data Type" and look up
"Array.BinarySearch Method"
I've never done this, and you didn't say anything about the "record format" in your file. I hope this helps a little?