To generate an text file from a sheet, download the sheet as TSV, but use File Extension ".txt" (or whatever extension you need.)
E.g. to generate an HTML file from a sheet, download the sheet as TSV, but use File Extension ".html"
Output works well for HTML, but may be a bit "tabby" for plain text output.