From: John Joyce Date: 2007-04-24T01:38:41+09:00 Subject: nil instead of EOF Seeing as how Ruby will return nil when an I/O stream is empty, is there anything wrong with using nil where other languages might use EOF ? As in this example: File.open("text.txt") do |f| puts f.gets(nil) end