From: James Edward Gray II Date: 2009-10-04T06:55:38+09:00 Subject: Re: Writing a Mad Libs program? On Oct 3, 2009, at 3:47 PM, John Kriple wrote: >> $ ruby madlib.rb madlib.txt > > I am using nano for a script shell. Does that have an effect on this? I believe you mean that you are using nano for your text editor, not shell. Most likely your shell is bash, if you are on a Unix and haven't tried to change it. The commands I showed, lines starting with $, will work fine in bash. >> Give me a gemstone: >> Ruby >> Give me a gemstone: >> Emerald > > Where does this get written? This we me interacting with the program as it ran. It asked those questions and I typed those answers. >> madlib >> Our favorite language is Ruby. We think Ruby is better >> than Emerald. > > So, I guess my biggest question is where does the script get written > before you start writing the program to fill in the gaps? Using nano, I can create the file like this: 1. I type: nano.rb 2. I paste in the code from the web site or my last message 3. I push control-o and then press return to write the file Does that help? James Edward Gray II