how exactly do binary files work in python?

John Salerno johnjsal at NOSPAMgmail.com
Sun Mar 12 22:01:46 EST 2006


Erik Max Francis 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? What does a binary 
file do that a text file doesn't, aside from not converting the end of 
line characters?



More information about the Python-list mailing list