From: nobu.nokada@... Date: 2005-05-15T11:00:15+09:00 Subject: Re: re-opening STDIN after it's been closed? Hi, At Sun, 15 May 2005 10:44:00 +0900, David Vincelli wrote in [ruby-talk:142672]: > > Or even better if you can use readline: > > > > while ans = readline(prompt) > > handle_action(ans) > > end > > > But I did try this. I don't think your usage of readline is correct. ri > tells me that readline takes a single parameter and it's the line seperator. Sorry, I forgot "Readline." before it. require 'readline' while ans = Readline.readline(prompt) handle_action(ans) end -- Nobu Nakada