Merge TSV

How to merge TSV files in C#

GroupDocs.Merger allows developers to merge TSV files when it’s needed to organize multiple TSV files into single document or send fewer attachments etc. And you can do this without¬†any third-party software or manual work involved. With GroupDocs.Merger it is possible to combine TSV documents of any size and structure - all text, images, tables, graphs, forms and other content will be preserved.

The following example demonstrates how to merge TSV files with several lines of C# code:

  • Create an instance of Merger class and pass source TSV file path as a constructor parameter. You may specify absolute or relative file path as per your requirements.
  • Add another TSV file to merge with Join method. Repeat this step for other TSV documents you want to merge.
  • Call Merger class Save method and specify the filename for the merged TSV file as parameter.
// Load the source TSV file
using (Merger merger = new Merger(@"c:\sample1.tsv"))
{
    // Add another TSV file to merge
    merger.Join(@"c:\sample2.tsv");
    // Merge TSV files ans save result
    merger.Save(@"c:\merged.tsv");
}

About TSV File Format

A Tab-Separated Values (TSV) file format represents data separated with tabs in plain text format. The file format, similar to CSV, is used for organization of data in a structured manner in order to import and export between different applications. The format is primarily used for data import/export and exchange in Spreadsheet applications and databases.

Code Examples

Please find more use-cases and complete C# sources of our backend and frontend examples and try them for free!

Merge TSV Live Demo

GroupDocs.Merger for .NET provides an online TSV Merger App, which allows you to try it for free and check its quality and accuracy.

“Merge TSV”