From: fREW Date: 2007-06-09T06:41:56+09:00 Subject: Re: trouble running ruby programs On 6/8/07, Jacob Gillie wrote: > Okay, the program worked in the command prompt, (Station! appeared under > the command line) but I still have the problem with the window closing > before anything appears. Also, there's a premade program in the bin > folder that DOES work in the window... is there some special code I need > to make a program able to open and run by itself? > > -- > Posted via http://www.ruby-forum.com/. > > I think the issue here is that you aren't understanding the console. Normally when you write code you write some, and then run it, and then write some, and then run it, etc etc. Generally people who use the console a LOT will either open the file with a console editor and leave the console open (obviously) and run the file when they want to test what they have done, or they edit with something else, leave a console open and run the previous command again to see the differences. As for run by itself, I really think that the STDIN.getc at the end of each program is the best you are gonna get for that. -- -fREW