Hy I have my data in file as
Energy,utili,surplus,shortage
1,2,3,4
5,6,7,8
9,10,11,12
And I want to read this data column wise and then I want to write it to another file so that I may be able to perform some operations on it
Please help

There are just 4 rules to parsing a CSV:
Commas separate fields
Carriage return linefeed separates rows
Unless inside “
But “” is a literal “

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.