From: Marcin Kulisz Date: 2007-05-02T07:33:22+09:00 Subject: Re: file & split Tim Hunter wrote: > a) It's "+=" not "=+" yep it's working better then before :-) > b) You probably need to convert c8 to a number before you can add it > puts sum += c8.to_i I've done it in this line "c8=tab[7].to_f" but I still don't know how to divide sum by amount of rows :-) eeeh it's a crazy work, and it's a bit late :-) -- Posted via http://www.ruby-forum.com/.