From: Stefan Lang Date: 2005-01-31T04:55:47+09:00 Subject: Re: Read CSV-File (Comma Separated Values) James Britt wrote: > You might do better to leave the hard work to ruby: > > IO.readlines( 'filename' ).each{ |line| > ary_values = line.split(,) ^^^ Shouldn't there be quotes around the comma? line.split(',') > # do some stuff with it > } > > By using the block form you let Ruby handle the check for EOF and close > the file when done. >