title: Conversion from XSLX to TXT asks for exit method
body: <p>As per other posts I saw on stackoverflow, I wrote the following code to convert an XLSX to TXT however it throws: AttributeError: <strong>exit</strong> :</p>
  
  <pre><code>import xlrd
  import csv
  
  with xlrd.open_workbook('data.xlsx').sheet_by_index(0) as in_xslx:
      in_reader = csv.reader(in_xslx) 
      with open("data.txt", "w", newline='', encoding='utf8') as out_text:
          out_writer = csv.writer(out_text, delimiter = '\t')
          for row in in_reader:
              out_writer.writerow(row)
  </code></pre>
  
  <p>However it successfully converts a CSV if I replace the first two rows with:</p>
  
  <pre><code>with open("data.csv", "r", encoding='utf-8') as in_csv:
      in_reader = csv.reader(in_csv) 
  </code></pre>
  
  <p>Any idea why is that happening when converting XSLX->TXT and how to correct?</p>
  
  <p>Thank you</p>