Posted Mar 28, 2008 16:08 UTC (Fri) by alkandratsenka (guest, #50390)
[Link]
Reading whole file in memory just to parse int from it's first line is very funny :)
You'll need a longer version like this
(File.open('foo.txt') {|f| f.readline}).to_i rescue deadParrot