<div dir="ltr">Hi,<br><br>probably not the best solution, but this should work:<br><br>L1 = []<br>L2 = []<br>for i in file:<br>    tmp = i.split(" ")<br>    L1.append(tmp[0])<br>    L2.append(tmp[1])<br>    <br>for i in L1:<br>
    print i,<br>print # new line<br>for i in L2:<br>    print i,<br>print # new line <br><br>Almar<br><br><br><div class="gmail_quote">2008/10/1 sandric ionut <span dir="ltr"><<a href="mailto:sandricionut@yahoo.com">sandricionut@yahoo.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div> </div>

<div>Hello:</div>
<div>I have a text file that looks like:</div>
<div>0 23</div>
<div>1 342</div>
<div>3 31</div>
<div>and I want to read the file and print it out like:</div>
<div>0 1 3</div>
<div>23 342 31</div>
<div> </div>
<div>How can I do this?</div>
<div> </div>
<div>Thnak you in advance,</div>
<div> </div>
<div>Ionut</div>
<div> </div>
<div> </div></div><br>

      </div><br>--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br></blockquote></div><br></div>