MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

Read data structure from binary file


I have a binary file which I would like to read into a data structure.
The data structure contains some simple data types like Integer16 and Integer32, but also a byte array of length 255.

How can I read this byte array into mathematica along with the other data types as a complete data structure, without having to use BinaryReadList(file, {"Integer32", "Byte", "Byte", "Byte", "Byte", "Byte", ..., "Byte", "Integer16"}) ?

Thanks.


  • Prev by Date: How do I hide all input in a Mathematica notebook?
  • Next by Date: Re: Unexpected behavior of Floor and IntegerPart
  • Previous by thread: Re: How do I hide all input in a Mathematica notebook?
  • Next by thread: Re: Read data structure from binary file