Results 1 to 2 of 2

Thread: How to search a random access file

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Oct 1999
    Location
    England
    Posts
    982

    How to search a random access file

    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.


    Things I do when I am bored: DotNetable

  2. #2
    Frenzied Member
    Join Date
    May 2004
    Location
    Carlisle, PA
    Posts
    1,045
    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?
    Blessings in abundance,
    All the Best,
    & ENJOY!

    Art . . . . Carlisle, PA . . USA

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width