Ooo Grec wrote: > I would like to read for each line:name, order and year (3 variables per > line). How can i do this? String.split will work if there is whitespace in between each item: irb(main):001:0> x = 'Peter 4 1990' => "Peter 4 1990" irb(main):002:0> x.split => ["Peter", "4", "1990"] irb(main):003:0> quit Now, you have an array that contains [name, order, year] -- Posted via http://www.ruby-forum.com/.