Thread: binary compair

  1. #1
    ‡ †hë Ö†hÈr sîÐè ‡ Nor's Avatar
    Join Date
    Nov 2001
    Posts
    299

    binary compair

    is there an app that will compair file like this?
    Code:
    say the first file is
    00 00 00 00  01 01 01 01  00 01 00 01
    
    and the second is 
    01 00 01 00  00 00 00 00  00 00 00 00
    01 00 01 is the match i want to find.
    is there any names that apply to this kind of search?
    Try to help all less knowledgeable than yourself, within
    the limits provided by time, complexity and tolerance.
    - Nor

  2. #2
    Registered User
    Join Date
    Mar 2003
    Posts
    28
    What OS ??
    Linux
    grep string filename
    DOS
    find string filename
    ___________
    If I am not for myself, who will be for me?
    If I am only for myself, what am I?
    If not now, when?

  3. #3
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    Write your own app, this is afterall a programming related forum
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  4. #4
    Visionary Philosopher Sayeh's Avatar
    Join Date
    Aug 2002
    Posts
    212
    Hammer, thank you for that gratifying response

  5. #5
    ‡ †hë Ö†hÈr sîÐè ‡ Nor's Avatar
    Join Date
    Nov 2001
    Posts
    299
    Originally posted by Hammer
    Write your own app, this is afterall a programming related forum
    this is what i was trying to avoid but looks lke my only solution
    Try to help all less knowledgeable than yourself, within
    the limits provided by time, complexity and tolerance.
    - Nor

  6. #6
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    >>this is what i was trying to avoid but looks lke my only solution<<
    It won't be very hard, depending on what you call a match. Anyway, a simple read into an array or two will get you started...
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

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