Helpful Information
 
 
Category: Ruby Programming
Array to CSV

HI all
I need help with converting 2D array to CSV, Im using following code but it doent give me required output.
brr[0][0]=TNI
brr[0][1]=LR
.
.
brr[n][n]=val
str = CSV.generate_line(brr, col_sep = ?\r, row_sep = ?,)
OUt put
TNILRval
my required out put should look like
TNI,LR,val

col_sep is working like the way i want it but row_sep is not working , may be i m using wrong.

NEEDED HELP!!!!!










privacy (GDPR)