PNG JPG BMP TIFF CSV
Aspose.Cells  for C++

Merge CSV Formats in C++

CSV document merger using server-side C++ APIs.

How to Merge CSV File Using C++

In order to merge CSV file, we will use Aspose.Cells for C++ API which is a feature-rich, powerful and easy to use document merger API for C++ platform. You can download its latest version directly, just open NuGet package manager, search for Aspose.Cells.Cpp and install. You may also use the following command from the Package Manager Console.

Command


PM> Install-Package Aspose.Cells.Cpp

Steps for Merging CSV Files in C++

A basic document merging and concatenating with Aspose.Cells for C++ APIs can be done with just few lines of code.

  • Load the CSV file with Workbook class.
  • Call the Workbook.Combine method for merging files.
  • Call the Workbook.Save method and pass the output file name as a parameter.
  • Now you can open and use the output file in Microsoft Office, Adobe PDF or any other compatible program.

System Requirements

Our APIs are supported on all major platforms and Operating Systems. Before executing the code below, please make sure that you have the following prerequisites on your system.

  • Microsoft Windows or a compatible OS with C++ Runtime Environment for Windows 32 bit, Windows 64 bit and Linux 64 bit.
  • Add reference to the Aspose.Cells for C++ DLL in your project.
Free App to merge Excel files on line
Select two files
Output format
   
                                   

	  

Aspose::Cells::Startup();
  
Workbook wkb(u"Input.xlsx");
wkb.Combine(Workbook(u"Combine.xlsx"));
wkb.Save(u"Output.pdf");

Aspose::Cells::Cleanup();

	 
                
            
Aspose.Cells API can be used to create, edit, convert and render Microsoft Excel formats to different formats. Moreover, it can be used for comprehensive charting, scalable reporting and reliable calculations within software applications. Aspose.Cells is a standalone API and it does not require any software like Microsoft or OpenOffice.

CSV What is CSV File Format?

Files with CSV (Comma Separated Values) extension represent plain text files that contain records of data with comma separated values. Each line in a CSV file is a new record from the set of records contained in the file. Such files are generated when data transfer is intended from one storage system to another. Since all applications can recognize records separated by comma, import of such data files to database is done very conveniently. Almost all spreadsheet applications such as Microsoft Excel or OpenOffice Calc can import CSV without much effort. Data imported from such files is arranged in cells of a spreadsheet for representation to user.

Read More