> That assumes that record is comma separated and can be stored as a > simple array. For a more complicated record, use something like > data << MyRecord.new(f.gets.chomp) > > Hope this helps, Yay! That was it. I do think that there should be something that takes a block and calls that block for each record in the file. The block would read a record and also advance the file pointer. Actually you could rewrite the above like that. Jon -- Posted via http://www.ruby-forum.com/.