aathira shaji :
I have a csv file with 2 rows - column headers and values.I need to access the value of each column and update the value.
this script is proving value in a new row.
CSVWriter writer=new CSVWriter(new FileWriter("C:\\Try.csv",true));
writer.writeNext(pNumber);
writer.close();
YouDontKnowAboutBear :
Simple Steps to do this:
Create a new .csv file
Read your file
While reading your file, write to your new file and do the changes if necessary.
You can also check the similar question here: what is the best way to edit csv file