We don't bite newbies here... much | |
PerlMonks |
Re^4: Read a bin file and extract databy bulk88 (Priest) |
on Mar 22, 2012 at 18:24 UTC ( [id://961068]=note: print w/replies, xml ) | Need Help?? |
What is a GCD file and what program or whats the name of the lab equipment that made it? "Shimadzu GC Solution Data File (*.gcd)" ?
LabSolutions PDF Your program has OLE. Use it. Reverse engineering a binary file is dozens of hours of work and a good knowledge of C (to understand how floating points/LE BE integers/bitfields and structs are layed out in memory). Unless your problem is you need to decode the GCD file on a PC without LabSolutions/Vendor's software or you dont have a license for the hypothetical OLE Addon at your lab? Can't you save the data in some format that is more commonly used? It will probably be easier for you to spit out ASCII plain text files, like the one you showed, then regex in perl the ASCII plain text report. I agree. Storage_Lite is terrible to use. I wrote up the following to dump the compound file. run this as "perl gcdfile.pl > gcddump.txt", the file will be ~1.5 MB. I changed the name of the GCD file to lab.gcd. Change it to whatever.
In Section
Seekers of Perl Wisdom
|
|