From: Ruy Diaz Date: 2007-05-02T07:44:26+09:00 Subject: Re: file & split Oops, forgot to include the += i = 0 while line=file.gets tab=line.split c8+=tab[7].to_f i = i + 1 end puts c8 / i