File.read("filename").each{|line| 処理 }
もしくは、
File.open("filename"{|fio| fio.each{|line| 処理 }}
とか。
254 が言ってるのは後者の方のような用法。

>256
閉じられるよ。