I'm trying to use Python to convert an .xlsx file into a .txt file, but the resulting file is corrupt. When I manually open the .xlsx file and use File>Save as>.txt the file is fine. How can I convert the file with Python without corrupting it?
import openpyxl
wb = openpyxl.load_workbook('/Users/name/Desktop/Template.xlsx')
wb.save('/Users/name/Desktop/Template.upd.txt')