From: Shadowfirebird Date: 2011-03-17T06:01:57+09:00 Subject: Re: How to View Output - Stop App Excerpts from Rob Gu's message of Wed Mar 16 20:30:52 +0000 2011: > Greetings, total noob question I'm sure. I'm trying to run a simple > example in a console, but how do I tell it to stop so I can view the > output? In C# I think I could just return false or something, but what > do you do in Ruby? > > puts "Hello, world. What is your name?" > myname = gets() > puts "Well, hello there " + myname + "." > [so here it just closes out, but I want to see the greeting :( ] I think it very much depends what you are using as an editor. Also your OS. Here in Linux I can just run a program with 'ruby ' at the command prompt and I can see it fine; I imagine the same would be true of the Windows command mode screen... -- Snoopy: No problem is so big that it can't be run away from.