Forum Moderators: coopster
I have a file with information formatted in Binary, which was saved from a C++ program. It's in a structure with different data types: Strings, integers, more structures...
I use fread() to read each structure, and it returns the binary data, but I can't seem to get it to understand what part of it I want to use.
Any suggestions?
this is farly a detailed question. first of all you need to know how each part of c++ variable type is saved. i don't know a built in function in php that does a parsing for you, so you need to do it for yourself.
this is quite like building a filefilter for jpeg files or similar. you need to parse the wohle file for datatypes and extract them each.
--hakre