To convert a spreadsheet to a text file, first open it in Excel. The following example shows how to save the table below as text without losing the column separators.
As a result, a text (tab-delimited) file is saved in the location you specified with all columns separated by a tabulator. When you open the file in a text editor (such as Notepad), it looks like the picture below.
You can also convert a spreadsheet to a comma-delimited text file in a similar way.
Now, all columns in the CSV file are separated by a comma. When you open the file in a text editor (such as Notepad), it looks like the picture below.
Notes
To convert a Google Sheets spreadsheet to a tab-delimited file, you must first save the sheet as a Tab-separated values (.tsv) file, and then save that file as a tab-delimited (TXT) file.
The final output is the text file with the tabular delimiter.
To convert a Google Sheets file to a comma-delimited file, go to File > Download > Comma-separated values (.csv, current sheet).