Writing an integer to a file?!?

Gabriel Ambuehl gabriel_ambuehl at buz.ch
Tue Nov 7 20:32:42 CET 2000


Hello Grant,

Tuesday, November 07, 2000, 8:07:39 PM, you wrote:
> If you _really_ want to write binary data rather than a string
> (generally a bad idea), then you need to use the 'struct'
> module to convert the int to a "string" containing binary data.
> [Insert standard warnings about byte ordering, etc.]


Couldn't cause any problems here. That timestamp is only intended to
be used on the very same machine running the very same OS.



Best regards,
 Gabriel






More information about the Python-list mailing list