How to convert a text file to Excel with Python
<p>I have a text file (textfile.txt) in a folder called DOT and I am trying to convert that file to an Excel file (Excelfile.xls) using Python code.  I am not familiar with Python but from other comments I wrote the code below.  The code does not work.  Could anyone help me get the correct syntax? </p>

<pre><code>book = xlwt.Workbook()
import xlwt
import xlrd
f = open('/DOT/textfile.txt', 'r+')
book.save('/DOT/Excelfile' + '.xls')
</code></pre>