In this tutorial I am going to show you how to merge multiple CSV files into one in Python. I am using two CSV files for this example. You may need to merge multiple CSV files into one in some situations for your business requirements. Your different CSV files might have some common headers amongst them and when you merge those CSV files you want to put unique headers for the final CSV file. Under each header you will write values from different CSV files. If there is no value…
ContinueTag: Read CSV
How to convert CSV File to PDF File using PyFPDF in Python
Here I am going to tell you how to convert CSV to PDF file using PyFPDF library in Java programming language. CSV is a comma separated value and it can be opened as a plain text file or in Microsoft excel file. There are few advantages of CSV data: CSV format is considered to be standard format CSV is smaller in size and faster to handle CSV is simple to implement and easy to parse CSV is human readable and easy to edit manually CSV is processed by almost all…
ContinueHow to convert CSV file to PDF file using iText API in Java
Here I am going to tell you how to convert CSV to PDF file using iText library in Java programming language. I am going to use Java 7 or later version’s new feature Path API to read the CSV file and Java 8’s Stream API to split the comma separated line or record. I am going to show you how to read file content into byte array and how to convert byte array into String. Then I am converting the array of String into a list of String. Finally from…
ContinueHow to convert CSV to XML using Python
Introduction Here I am going to create an example on how to convert CSV to XML. CSV means Comma Separated Value. So the sources of these values may be different. These values may be put into a file or in a string. XML is an Extensible Markup Language that defines a set of rules for encoding document in a format that is both human and machine readable.
ContinueHow to read CSV file or string using Python
Introduction In this example I am going to show you how to read CSV file or string using Python programming language. We may come across a situation where we need to read CSV string or CSV file and manipulated data for any further business process. CSV means Comma Separated Values and the source of these values may be a file or string.
ContinueHow to read CSV File using Java 7 or later
In this tutorial I will show you how to read CSV file using Java 7 or later versions. We will use here Java’s new feature Path API. We will also use Java 8’s Stream API to split the comma separated line and map the record into String array. We are going to show you how to read file content into byte array and how to convert byte array into String.
ContinueHow to Convert CSV to XML using PHP
Introduction The example, convert csv to xml using PHP , shows conversion of csv data to xml data. As the title suggests to convert csv to xml using PHP, so we will convert either csv file to xml file or csv string to xml string. When we convert csv string to xml string you will see the output on the browser and when we convert csv file to xml file then you will see the xml document saved into a file on the physical drive location. So here in this example…
ContinueRead from and write to a CSV file using PHP
This tutorial shows how to read from a csv file and write to a csv file using PHP programming language. In this example I have shown how to read a csv file and display those values on the browser when you run the PHP file. I have also written those csv entries into another output csv file. There are few advantages of CSV data: CSV format is considered to be standard format CSV is smaller in size and faster to handle CSV is simple to implement and easy to parse…
ContinueHow to merge multiple csv files into one in Java
Introduction This tutorial shows how to merge multiple csv files into one in Java. You may need to merge multiple csv files into one in some situations for your business requirements. Suppose there are n number of csv files and each csv file is having different number of headers, so this example will show you how to merge multiple csv files into one file in java and write all the records into a single csv file using java. The single file will contain all unique headers from multiple csv files.
Continue