Pascal -> Python 'record' structures

Hans Nowak ivnowa at hvision.nl
Mon Dec 11 10:00:11 EST 2000


deadmeat wrote:
> 
> Can anyone tell me how to read in file records that were created by Pascal
> and C programs? Will I have to write a wrapper and parse the raw data
> manually?

That's a way to do it, but the struct module might do what you want:

  http://www.python.org/doc/current/lib/module-struct.html

--Hans Nowak



More information about the Python-list mailing list