From: RLMuller Date: 2003-05-15T02:20:11+09:00 Subject: 'gets' flagged as 'Bad file descriptor' - why? Hi All. I'm a newbie to Ruby. When I tried running the following code excerpted from The Ruby Way, p. 405, on a Win2000SP3 system using ruby 1.6.8 (2002-12-24) [i586-mswin32]: require "win32ole" print "Enter the filename to print: " docfile = gets ... returns an error for line 3: `gets': Bad file descriptor (Errno::EBADF) Thanks for any info you may be able to offer. Regards, Richard Muller