help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Read binary files (big-endian and little endian)


From: José Luis García Pallero
Subject: Read binary files (big-endian and little endian)
Date: Sat, 27 Jan 2007 16:25:09 +0100

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!
*****************************************
reply via email to

[Prev in Thread] Current Thread [Next in Thread]