Excel is a popular format for sharing information. You may find yourself in situations where you have data in an Excel(XLS file that you need to import to a database. For this, you would need to convert the Excel file to CSV format. On the other hand, you may have data in CSV format exported from a database that you need to manipulate further in an Excel file. For such cases, you would need to convert the CSV file to Excel format. In this article, you will learn how to perform both these conversions programmatically using C++.