Hi, I'm trying to read a binary file in big-endian format from a little-endian machine (PC with Debian GNU/Linux). Octave sintax is, for example: [VAL, COUNT] = fread(fileID, Inf, 'integer*8', 0, 'ieee-be') and it runs well.
I want to write a C++ function for read the same file using the GNU/Octave C++ library. What function can I use to indicate the endianness type of data storage. The C standard fread function don't have an adecuate option.
Thanks
-- ***************************************** José Luis García Pallero address@hidden (o< / / \ V_/_ Use Debian GNU/Linux and enjoy!
*****************************************
[Prev in Thread]
Current Thread
[Next in Thread]
Read binary files (big-endian and little endian),
José Luis García Pallero<=