I'm afraid you'll have to find out what exactly the author meant with "binary-coded" i.e. how did he code it? Perhaps there's an introductory note in the format's documentation about what binary-coded is.

Once you know how to interpret the bytes you'll probably have to put all three of them in a memory block to then extract the real information back out of it.

Marc

I'm using a structure to read some data from a binary file, having the record format of the data inside the file.

all is working fine for text data, but on the record format I have:

chars 10 to 12 - date (day/month/year, expressed as a binary-coded decimal number)

I'm using a text field on the structure to read this, because only reading as a string I can specify the number of chars to read, but I'm quite confused about trasforming this chunk of binary data in an integer.

thank you,

      Giulio
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to