From: "Jan E." Date: 2012-12-12T20:36:44+09:00 Subject: Re: Enumerable#zip with File IO Hi, this simply makes no sense. When you go through each line "by hand", the "zip" is completely useless. You might as well write file = open( ARGV[0], "r" ) puts "#{1}: #{file.readline}" puts "#{2}: #{file.readline}" ... I guess what you actually want is something like this: File.foreach(ARGV[0]).with_index do |line, i| puts "#{i + 1}: #{line}" end -- Posted via http://www.ruby-forum.com/.