Thanks for the solution. i change the "|" to "," and it worked. But Im 
still confuse, because I thought .csv file (data) are separated by "|" 
in the first place. I guess im wrong

Nizam

-- 
Posted via http://www.ruby-forum.com/.