Thread: Hashing Binary

  1. #1
    Registered User
    Join Date
    Sep 2002
    Posts
    64

    Hashing Binary

    I am working with a program that needs to open a binary file and then work with regular text files and also mix a little hashing in. I know this is very vague, but could someone give me a SMALL example of something similar to this. I can't seem to grasp the idea of working with multiple files and hashing.

    thanks guys! you've been a great deal of help.

  2. #2
    Code Monkey Davros's Avatar
    Join Date
    Jun 2002
    Posts
    812
    By hashing, I presume you want rapid access to items by using somekind of unique key to distinguish them. Is this what you mean?

    If so where are you storing the 'items', in the text file* or the binary file.

    *Text files are really just binary files (all files are binary), but they have some formatting rules (such as linefeed characters at line ends) which make then suitable for storing text data.
    OS: Windows XP
    Compilers: MinGW (Code::Blocks), BCB 5

    BigAngryDog.com

  3. #3
    Registered User
    Join Date
    Nov 2001
    Posts
    1,348
    I recommend that you first come up with a working hashing algorithm. Everything else should be simple from there on.

    Kuphryn

  4. #4
    Registered User
    Join Date
    Sep 2002
    Posts
    64
    alright, sounds like a plan. you guys are great.

    i'll get the hashing function and then go from there.

    any other comments are welcome.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. arrays vs lists? And containers in general!
    By clegs in forum C++ Programming
    Replies: 22
    Last Post: 12-03-2007, 02:02 PM
  2. Replies: 0
    Last Post: 11-04-2006, 11:07 AM
  3. Binary Search Trees Part III
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 10-02-2004, 03:00 PM
  4. Tutorial review
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 11
    Last Post: 03-22-2004, 09:40 PM
  5. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 10:33 AM