From: 7stud -- Date: 2011-09-10T07:10:23+09:00 Subject: Re: Large file reading File.open("xml.xml") do |f| e = f.each IO.foreach("html.htm") do |line| puts "----#{line}" puts "****#{e.next}" end end --output:-- ---- **** ---- **** ---- **** ---- Test **** Tove ---- **** xxxx ---- **** Tove's value is: 10 ---- **** ----