On 2006-03-13, John Salerno <[EMAIL PROTECTED]> wrote: >> You can use the struct module for converting fundamental types >> to a portable string representation for writing to binary >> files. > > But if it's a string, why not just use a text file?
Because string != text. In Python a "string" is just an arbitrary length chunk of bytes. > What does a binary file do that a text file doesn't, aside > from not converting the end of line characters? Nothing. It's the end-of-line conversion that can break binary data. -- Grant Edwards [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list