On Nov 25, 2007 12:52 AM, Pawel Radecki >
> reverse.rb:9:in 'gets': Bad file descriptor (Errno:EBADF)
> Do you have any ideas why it doesn't work?

>ruby -v
ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32]

>ruby  reverse.rb sample.txt |  ruby reverse.rb
testing only

kind regards -botp