At Wednesday 29/11/2006 23:07, Dawn Abbott wrote:
I have three files of binary data. I want to write the three binary
data files to one file. I want the old files to each have their own
column in the new file. This is what I have,
f=open('relative_x.INT32','rb')
a=array('l')
a.fromfile(f,10)
g=open('relative_y.INT32','rb')
b=array('l')
b.fromfile(g,10)
data=zip(a,b)
for datum in data:
... print ' '.join(datum)
...
the error I get is expected string, found int
I figure that the joint is for strings only does anyone know of a
way were I could join the data that would be for ints.
Do you want to write a TEXT representing the binary values?
for datum in data:
print ' '.join(map(str,datum))
--
Gabriel Genellina
Softlab SRL
__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis!
¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar
--
http://mail.python.org/mailman/listinfo/python-list