From: Zhenning Guan Date: 2008-11-05T21:51:13+09:00 Subject: what's wrong about this chomp code? when I was running this code ------------ File.open("1c.txt") do |f| while line= f.gets.chomp; p line ; end end ------------- why they warning with the message below? ========= private method 'chomp' called for nil:NilClass from ok.rb:2:in 'open' from ok.rb:2 ========== -- Posted via http://www.ruby-forum.com/.