I know I am overlooking something obvious, but I need to read from a binary file into integer and float variables. .read of course takes strings and I cannot get the >> operator to read only a specified amount of bytes. Any suggestion is appreciated.
Next question is, do you know what size each item is? In other words, is the file a list of float (single-precision) or long float (double precision)? And do you know the endianness of the file?
There are some of each size, but yes I do know which is which, where they are located in the file and the order in which they appear. I am not sure of the endianness, possibly middle-endian.