how to read struct from binary file??

Oct 12, 2014 at 3:41pm
hi

i have this file want to read it source code help plz

https://www.mediafire.com/?7a9649gz29efa94
Oct 12, 2014 at 6:14pm
You need to know what is in the file in order for you to be able to read it. A 'bin' file can be anything.

Do you know what this file is supposed to be?
Oct 12, 2014 at 8:49pm
I know what inside the file but I can't analys it
I dump this file from serial flash chip by machine
Oct 12, 2014 at 9:02pm
Let me rephrase.

A file is just a series of numbers. I open the file in a hex editor and I see this:

http://imgur.com/jmTzN54

Those numbers mean nothing to me without context. It is impossible to read the file in any meaningful way without knowing what all those numbers mean.

"a dump from a serial flash chip" does not help. You need to be very specific about what format the file is.
Oct 12, 2014 at 10:09pm
I dump this file from reciever with jitag and I want analysis to extract some information .
Oct 12, 2014 at 11:20pm
This file written by c++ and given reciever I dumping flash reciever and giving me like binary.
Oct 13, 2014 at 5:09am
None of that tells me how the contents of the file are formatted.

Let me rephrase that again.....

The first 4 bytes of the file are:

1F 8B 08 00


What do those numbers mean?
What do they represent?
Oct 13, 2014 at 12:46pm
These numbers told that file is gzip compressed.
Oct 13, 2014 at 2:24pm
...or first entry in the file is integer 529205248
...or it is float 5.88820247239747220080463563363E-20
Oct 13, 2014 at 7:39pm
These numbers told that file is gzip compressed.


Are you sure?

I tried giving the file a .gz extension and opened it in an archiver (7zip) and it was unable to read the file.


You could try decompressing it on your own (you could skip over the 10 byte header and treat the rest as DEFLATE'd data -- just run it through zlib or something to decompress it). Although if 7zip can't read the data, I wouldn't hold out much hope.
Oct 15, 2014 at 12:54am
This is Complete file and really i want decompress it.

https://www.mediafire.com/?v2ttyfoity88rs4
Topic archived. No new replies allowed.