I have a program that outputs a table, and I was wondering if there are any advantages/disadvantages between the csv and tsv formats.
The Comma Delimited file is a file in which values are separated by commas. The . csv format can be viewed in Microsoft Excel. The Tab Delimited file is a file in which values are separated by tabs.
A tab-separated values (TSV) file is a text format whose primary function is to store data in a table structure where each record in the table is recorded as one line of the text file.
CSV files can be opened by any spreadsheet program: Microsoft Excel, Open Office, Google Sheets, etc. You can open a CSV file in a simple text editor as well. It is a very widespread and popular file format for storing and reading data because it is simple and it's compatible with most platforms.
TSV is a very efficient for Javascript/Perl/Python to process, without losing any typing information, and also easy for humans to read.
The format has been supported in 4store since its public release, and it's reasonably widely used.
The way I look at it is: CSV is for loading into spreadsheets, TSV is for processing by bespoke software.
You can see here the technical specification of each here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With