From: matz@... (Yukihiro Matsumoto) Date: 2001-01-19T12:03:36+09:00 Subject: [ruby-talk:9532] Re: reading an entire file as a string Hi, In message "[ruby-talk:9528] Re: reading an entire file as a string" on 01/01/19, Mathieu Bouchard writes: |Sorry, I tried both of the following and I cannot find a difference in |results. Maybe you can enlighten me? |1. buff = File.open("/etc/hosts") {|f| f.read() } | |2. File.open("/etc/hosts") {|f| buff = f.read() } Thechenically they are same, but appearance makes difference. matz.