Read long int from binary file

Enrico Morelli enrico_morelli at yahoo.com
Tue Oct 14 11:37:50 EDT 2003


Dear all,

I have to write a program which reads from a binary file, a serious of
32 bit long integer data and stores its in an array.
I cannot know the format (little or big endian) and I have to perform the
properly 4 byte reverse order swapping.

Someone can help me?
Where I can found some infos?

Thanks a lot
Enrico




More information about the Python-list mailing list