Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Query data in unknown binary file

Query data in unknown binary file

Scheduled Pinned Locked Moved C / C++ / MFC
databasequestion
4 Posts 2 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    NotProfessional
    wrote on last edited by
    #1

    My application wants to make a query of if there is a 'name' in the data file which is owned by another system and also a binary file(DSS format, any idea of what it is?) The query string is a ascii string, so my idea is change it to ascii value and reads the binary data file in and looks for the value. Is it make sense, or could you guys give me a new idea? Thanks in advance. :confused::confused::confused::confused::confused:

    J 1 Reply Last reply
    0
    • N NotProfessional

      My application wants to make a query of if there is a 'name' in the data file which is owned by another system and also a binary file(DSS format, any idea of what it is?) The query string is a ascii string, so my idea is change it to ascii value and reads the binary data file in and looks for the value. Is it make sense, or could you guys give me a new idea? Thanks in advance. :confused::confused::confused::confused::confused:

      J Offline
      J Offline
      Johnny
      wrote on last edited by
      #2

      I can't speak for everyone else, but the question didnt entirely make sense. Are you saying you want to find a string within a binary file? If you know nothing of the file format then your only option is to do a brute force search of the entire file!

      N 1 Reply Last reply
      0
      • J Johnny

        I can't speak for everyone else, but the question didnt entirely make sense. Are you saying you want to find a string within a binary file? If you know nothing of the file format then your only option is to do a brute force search of the entire file!

        N Offline
        N Offline
        NotProfessional
        wrote on last edited by
        #3

        yeah, that's just what I want to express, by the way, brute entire search? isthere any better solution

        J 1 Reply Last reply
        0
        • N NotProfessional

          yeah, that's just what I want to express, by the way, brute entire search? isthere any better solution

          J Offline
          J Offline
          Johnny
          wrote on last edited by
          #4

          No - if you dont know the format then you cant make any assumptions.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups