From: Ooo Grec Date: 2006-10-27T22:30:49+09:00 Subject: reading variables in a file I'm thinking of migrating from Fortran to Ruby. Do you think i should go ahead?? First problem i have. How to read a file with several fields? This means: Imagine a file: Peter4 1990 Sam 3 1980 Grac6 1991 I would like to read for each line:name, order and year (3 variables per line). How can i do this? and how can i write them into a file?? Thank you in advance. -------------------------------------------------------------------------------- -- Posted via http://www.ruby-forum.com/.