Help to create script which reade values from csv

I have a csv file :-my csv file has say 10 columns
eg:-
A,1,2,3,4,5,6,7,8,9
B,1,2,3,5,6,7,8,9
c,1,2,6,7,8,9
-----------------
I have to create a flat file from this file .The condition is each columns has fixed lenght declared:
say length of column 1 = 1
length of column 2 =3
length of column 3 =10
..................

in this format ,values from csv file has to write in flat file..please helppppp

Duplicate post, please continue here:

Thread closed.