Hi Christopher,

From: <christopher.j.meisenzahl / citicorp.com>
> Bill,
> 
> Thanks for the reply!
> 
> while(line = gets)
>   p line
> end
> 
> I'm getting:
> C:\tmp>2.rb < "data.dat"
> C:\tmp\2.rb:1:in `gets': Bad file descriptor (Errno::EBADF)
>         from C:\tmp\2.rb:1
> 
> Using Win2K.   :-(

Hmm...

# ruby test2.rb < "test2.rb"
got:
got:
got: while(line = gets)
got:   print "got: #{line}"
got: end
got:

# ruby -v
ruby 1.6.6 (2001-12-26) [i586-mswin32]

# ver
Microsoft Windows 2000 [Version 5.00.2195]


Sorry, I don't understand why your code isn't working.  Is "data.dat"
a text file or a binary file?  (Just grasping at straws...)


Bill