I wrote some code on a ruby 1.7.2 (2002-05-29) machine using
IO.read, but when I moved it to a ruby 1.6.8 (2002-12-24)
machine I got an exception,

 NameError: undefined method `read' for IO:Class

What's the idiomatic workaround for this sort of thing?

Thanks,
--
Bil Kleb, NASA, Hampton, Virginia, USA