Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2009

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

Search the Archive

Read data structure from binary file

  • To: mathgroup at smc.vnet.net
  • Subject: [mg97925] Read data structure from binary file
  • From: hobz <hobz at hotmail.com>
  • Date: Thu, 26 Mar 2009 05:18:29 -0500 (EST)

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