From: ts Date: 2002-11-18T02:49:30+09:00 Subject: Re: Read a file... >>>>> "B" == Bill Kelly writes: B> data = File.open("test.dat", "r") { |f| f.read } Try this data = File.open("test.dat", "r") { |f| f.read; [1, 2]} p data # [1, 2] Guy Decoux