Problem: We need to read and write contents in CSV using Java.
As an example, the csv file has following fields and values:
___________________________
id name address
___________________________
1 ram kamalpokhari
2 hari kalanki
3 mahesh sundhara
4 gopal koteshwor
The java file is :
The input csv file should be something like this:
Similarly this script writes the output to CSV file: The outuput to the csv looks something like this:

As an example, the csv file has following fields and values:
___________________________
id name address
___________________________
1 ram kamalpokhari
2 hari kalanki
3 mahesh sundhara
4 gopal koteshwor
The java file is :
The input csv file should be something like this:

Similarly this script writes the output to CSV file: The outuput to the csv looks something like this:

Thanks.
No comments:
Post a Comment