Tag: Read CSV
How to merge multiple CSV files into one using Python
Introduction 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…
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…
How 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…
How 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…
How 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. You may come across a situation where you 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…
How To Read CSV File Using Java
Introduction In this tutorial I will show you how to read CSV file using Java 7 or later versions. I will use here Java’s new feature Path API. I will also use Java 8’s Stream API to split the comma separated line and map the record into String array. I am going to show you how to read file content…
How 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 I will convert either csv file to xml file or csv string to xml string. When I convert csv string to xml string you will see the output on the browser and…
Read 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…
How 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…