This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Loading 8-bit ints from .dat file into memory



Given the following header:

1651 2 8008F0 0 512

Each row in my .dat file loads into memory as 32-bit ints. As my data values can only range from 0-255, I'd like to specify that each row only needs 8-bits. However, given the header parameters, I don't see how I can do that. I was wondering if anyone has a quick fix for this. Thanks in advance!

  • Hello,

    *.dat files will always default to the size of a word for the CPU that you are trying to load it to. I don't think it is possible to change that. There has been requests to allow this in the past and an enhancement request has been filed but I don't think it was ever implemented

    ki