Writing binary files
leind at sofcom.com
leind at sofcom.com
Fri Sep 14 00:47:42 EDT 2001
I have a large amount of binary data in memory (am image)
and I'm trying to write it to a file. But I can't find a simple
example showing how this is done.
I just need to write the data "as is" to a file.
I've looked at the 'struct' module but that doesn't
look like what I need. Also the 'pickle' module
appears to be used for formating binary data. Again,
not what I need.
Does python have the ablitiy to open a file and write
binary data to it?
I'm running under Mandrake linux using python 2.0
-Daniel
More information about the Python-list
mailing list