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(',')

> #dosomestuffwithit
> }
> 
> By using the block form you let Ruby handle the check for EOF and close
> the file when done.
>