No, two of the binary data files are integers and the third file is a
float. The data is large and the binary saves time and space.<br>
<br><br><div><span class="gmail_quote">On 11/29/06, <b class="gmail_sendername">Gabriel Genellina</b> <<a href="mailto:gagsl-py@yahoo.com.ar">gagsl-py@yahoo.com.ar</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
At Wednesday 29/11/2006 23:07, Dawn Abbott wrote:<br><br>>I have three files of binary data. I want to write the three binary<br>>data files to one file. I want the old files to each have their own<br>>column in the new file. This is what I have,
<br>><br>>f=open('relative_x.INT32','rb')<br>>a=array('l')<br>>a.fromfile(f,10)<br>>g=open('relative_y.INT32','rb')<br>>b=array('l')<br>>b.fromfile(g,10)<br>>data=zip(a,b)<br>>for datum in data:
<br>>... print ' '.join(datum)<br>>...<br>><br>><br>>the error I get is expected string, found int<br>>I figure that the joint is for strings only does anyone know of a<br>>way were I could join the data that would be for ints.
<br><br>Do you want to write a TEXT representing the binary values?<br><br>for datum in data:<br> print ' '.join(map(str,datum))<br><br><br>--<br>Gabriel Genellina<br>Softlab SRL<br><br>__________________________________________________
<br>Correo Yahoo!<br>Espacio para todos tus mensajes, antivirus y antispam ˇgratis!<br>ˇAbrí tu cuenta ya! - <a href="http://correo.yahoo.com.ar">http://correo.yahoo.com.ar</a><br><br></blockquote></div><br>