What generated your GCD file? The fileformat in 7120db.dat in http://www.people.vcu.edu/~elhaij/IntroBioinf/Programs/context/binary6.html and your format look very different and incompatible. 7129db.dat looks like fixed length records, this looks like binary tree data/something similar to a MS Word Document. I'm going to say you probably want to use OLE or a DLL supplied by the vendor of your lab equipment to decode this, unless someone in the FOSS/linux world already reverse engineered the file format, or the format is an open standard.

edit: your GCD file looks very similar to a MS Word file, the beginning of the first line of a DOC file is "ÐÏࡱá >  þÿ" the beginning of the first line of your GCD file is "ÐÏࡱá >  þÿ". Hmm, your file is a "Compound Binary File" http://en.wikipedia.org/wiki/Compound_File_Binary_Format. CPAN does have a couple module I see for parsing this, http://cpan.uwinnipeg.ca/dist/OLE/ and Finnigan::OLE2File you can try.. Again, there is probable an OLE library supplied with whatever made your GCD file that will let you programatically analyze it which is the easiest way to do it.

In reply to Re: Read a bin file and extract data by bulk88
in thread Read a bin file and extract data by hiX0r

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.