From: matz@... (Yukihiro Matsumoto) Date: 2001-01-19T17:45:33+09:00 Subject: [ruby-talk:9544] Re: reading an entire file as a string Hi Aleksi, In message "[ruby-talk:9543] Re: reading an entire file as a string" on 01/01/19, ale@crimson.propagation.net writes: |> |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. | |I'm sorry, I'm not following the idea of sameness here. Ah, you fooled by my stupidity. ;-) I should have mentioned I ignored the fact buff should be initialized before. matz.