CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2007
    Location
    India
    Posts
    30

    Smile Quick Search of a Binary File

    Here is a situation. I hav an collection of employee records which may scale up to thousands in a binary file. I would like to implement a search alogorithm that would search an employee quickly, with multiple criteria , say, EmpID, EmpName,EmpJoinDate, salary....

    Also I would like to know how indexing can be applied to the fields mentioned above ...???

    Can somebody suggest an algorithm that would do the same...??


    plz help me .....


    thanx in advance...:-)

  2. #2
    Join Date
    Jul 2001
    Location
    Netherlands
    Posts
    751

    Re: Quick Search of a Binary File

    I'ld stick them into SQL server

  3. #3
    GCDEF is offline Elite Member Power Poster
    Join Date
    Nov 2003
    Location
    Florida
    Posts
    12,637

    Re: Quick Search of a Binary File

    If you're really set on reinventing the wheel, and I can't imagine why you would be, I'd suggest you get a book on database internals and get started. There are plenty or very inexpensive solutions out there that work and are debugged. This really is a bad idea.

    I really don't mean this to be rude but the fact that you're considering it and asking here how to do it, indicates you probably aren't really up to the task.
    Last edited by GCDEF; July 16th, 2008 at 07:46 AM.

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

Featured