Thanks Jont! It is working fine. The only thing that remains is that I don't want a comma after the last attribute...how to do that?e.g.
x,200,item,
w,500,788,
w,444,ppp,
should be
x,200,item
w,500,788
w,444,ppp
i.e. no comma if it is the last attribute.
Thanks in advance