"Revision17" <net> wrote in message
to run it:
> higuessnumber.rb:4:in `gets': Bad file descriptor (Errno::EBADF)
> from guessnumber.rb:4
> Why is this happening?[/ref]
Are you running this through an Editor (may be SciTE or TextPad?)
IF that is the case then try it from the command prompt.