Assigning Variables at runtime?
I'm a newbie to Delphi, and newsgroups so please be patient. I have
problem that has me stumped. It's as follows:
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
194 bytes. The problem comes in that the actual structure of the data
can (and will) be different from file to file. 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.
The text file would then look something like this:
Var1 1 Bit
Var2 16 Bits
Var3 3 Bits
My application can then use this definition to interpret the data block
and allow for manipulation, etc.
Anyone has an idea if this is even possible?