Re: [Tutor] [tutor] how to cast to stucture

2006-09-05 Thread Kent Johnson
[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 modu

Re: [Tutor] [tutor] how to cast to stucture

2006-09-05 Thread Alan Gauld
> 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 o

Re: [Tutor] [tutor] how to cast to stucture

2006-09-05 Thread Pawel Kraszewski
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 ?

[Tutor] [tutor] how to cast to stucture

2006-09-04 Thread emilia12
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. - Спортни залагани