Yaser Sulaiman
2/2/2009 10:53:00 AM
[Note: parts of this message were removed to make it a legal post.]
On Mon, Feb 2, 2009 at 12:48 PM, Blackthirteen Blackthirteen <
karvboy@hotmail.com> wrote:
> When I save a program as test.rb and I run it, the window open but shut
> very quickly. How can I see my results once I run the program I made?
A quick fix: add "gets" to the end of your script. This will make your
program wait for your input. Once you hit Enter it will terminate.
Or you can just open the command line interface, navigate to the directory
containing your script, and then enter its name ("test.rb" in this case) to
execute it.
HTH,
Yaser