From: Timothy Hunter Date: 2007-03-20T07:20:36+09:00 Subject: Re: Exiting in the middle of the program Helgitomas Gislason wrote: > Good-Day to you all, programmers! > > There is a ruby calculator in the /ruby installation folder which has > the ability of that when you just type 'Exit', the program exits. > > How can I add this feature to a program built by myself? So when I type > 'Exit' in the middle of the program, the program exits ... > > I'm pretty sure those examples are there just so you can see how to do things with Ruby. Why don't you just look at the program, figure out how it's doing it, and then do it the same way in your program?