in reply to Program to convert Numeric text file to Packed decimal file
So this comes down to what you have "in" in terms of "bits" and what you want "out" in terms of "bits".
There are some very cool Perl functions: pack and unpack that can do a magnificent job of translation.
You will have to understand the difference between "little Endian" and "big Endian". These terms may seem strange as well as "binary coded decimal", or BCD.
I have no idea what "packed decimal" means to you. You will have to post some input and desired output.
|
|---|