John Tar wrote: > Hi > > everytime i run the following program in windows it auto closes when it > is done, so there is no time to see the final result > Sounds like you're double-clicking the .rb file in Windows Explorer in order to ru n it. Instead, open up a command prompt and run your file manually: c:\>ruby myscript.rb You'll want to get familiar with the command prompt anyway, so you can run irb and learn Ruby interactively. Jeff softiesonrails.com -- Posted via http://www.ruby-forum.com/.