From: revision17@... (Revision17) Date: 2004-02-14T13:44:57+09:00 Subject: Re: Novice Question: Getting "bad file descriptor error" when trying to use gets in ruby 1.8.1 for windows "Shashank Date" wrote in message news:... > "Revision17" wrote in message > > That I found on a tutorial website. Ruby gives me this error when I try > to run it: > > >ruby guessnumber.rb > > higuessnumber.rb:4:in `gets': Bad file descriptor (Errno::EBADF) > > from guessnumber.rb:4 > > >Exit code: 1 > > > > Why is this happening? > > Are you running this through an Editor (may be SciTE or TextPad?) > IF that is the case then try it from the command prompt. > > -- shanko Yes I am (SciTE). I'll try it out without when I get back to my computer on Sunday. Is there any way to get it to work with SciTE though? It's so convenient to just hit f5 and you can see the program's output.