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.