Hi list,
i have a complex data in binary file and i want to read its
fields... the C way is to read file in buffer and then cast
it to proper structure. Is there a way to do the same in
Python or i have to read the data byte by byte ?
Regards,
E.
-
Спортни
Dnia wtorek, 5 września 2006 08:32, [EMAIL PROTECTED] napisał:
i have a complex data in binary file and i want to read its
fields... the C way is to read file in buffer and then cast
it to proper structure. Is there a way to do the same in
Python or i have to read the data byte by byte ?
i have a complex data in binary file and i want to read its
fields... the C way is to read file in buffer and then cast
it to proper structure. Is there a way to do the same in
Python or i have to read the data byte by byte ?
You can use the struct module to unpack an arbitrary
sequence of
[EMAIL PROTECTED] wrote:
Hi list,
i have a complex data in binary file and i want to read its
fields... the C way is to read file in buffer and then cast
it to proper structure. Is there a way to do the same in
Python or i have to read the data byte by byte ?
As well as the struct module