Re: Assigning Variables at runtime?
On 30 Apr 2005 08:02:10 -0700, "Damfino" <firstname.lastname@example.org>
>I have a binary file containing blocks of 194 bytes of data. Each block
>starts with a 2 byte SyncVar of 01101001, so I can easily extract the
The SyncVar is not needed, but can serve as a good "sanity check" for
your logic and your data.
>The problem comes in that the actual structure of the data
>can (and will) be different from file to file.
How many different file layouts are there? 10? 100? 1000?
>What I would like to do
>is define the structure in a text file, and then at runtime apply that
>structure to the binary file question.
So each data file would be accompanied by a text file to define its
>Anyone has an idea if this is even possible?
Yes, it is possible, but before going down that route I suggest you
make sure that other options cannot be used. Can you explain a bit
more about the job you are tryng to do?