<div>Hello dear pythonists:</div>
<div> </div>
<div>I&#39;m developing an application in python, I&#39;m new using this programming language I used to work with Java, but in my job my superiors suggested me to develop in this language. </div>
<div>I&#39;m trying to read a dbf file, I already done it but my code shows me all the lines without spaces, I want it toshow line per line and then write the lines into a plain txt file. My code is:</div>
<div> </div>
<div>from dbf import *<br>from string import strip<br>import sys</div>
<div>def demo1():<br> a = open (&quot;archivo.txt&quot;,&quot;w&quot;)<br> dbf = Dbf(&#39;tapalpa_05_plani_point.dbf&#39;,new=False)<br>   <br> for k in dbf:<br>  print &#39;%s&#39;%(strip(k[2]))<br>  </div>
<div>  l=()<br>  l=(strip(k[2]))<br>  a.write(l)<br> <br> dbf.close()<br> a.close()</div>
<div> <br> <br>demo1()<br></div>
<div>I hope you can help me.</div>
<div>Thank you!</div>