From: Marcin Kulisz Date: 2007-05-02T06:58:25+09:00 Subject: Re: file & split Logan Capaldo wrote: >> but I still don't know how to put together all this numbers > > I' m not sure what you mean by "put together all this numbers." A good > thing to do when you are trying to write a program is to play with it > irb. > You get immediate feedback. I've got this few lines while line=file.gets tab=line.split c8=tab[7].to_f end and it works. Results of is it's like that 22121.12 4232.1 42353.90 322.0 when I'll add line like this "puts sum=+c8" just before end nothing happens, all I want is to add one number to another (evaluate it) -- Posted via http://www.ruby-forum.com/.