From: Robert Klemme Date: 2010-02-03T21:43:39+09:00 Subject: Re: Parsing text with while loop. 2010/2/2 Felix Feelx : > Aldric Giacomoni wrote: >> Why wouldn't you trust JEGII's CSV library (or 'FasterCSV' if you are on >> 1.8') ? It does all the hard work of parsing CSV for you. > > Because the content of the csv is not constant. It's not built as a > database file... I don't see how that rules out a CSV lib for reading CSV formatted input. Also, I am not sure what the purpose of your exercise is. Isn't there a CSV import in MySQL available? What about http://dev.mysql.com/doc/refman/5.0/en/mysqlimport.html ? I do not see any data manipulation in your code so the regular tools should be sufficient. Did I miss anything? Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/