Re: effect of variable



On Apr 19, 2011, at 1:04 AM, Jim S. wrote:

Was the 'text' variable placed there in case there was more code to
follow that might use that file? Removing that 'text' variable, I opened
the file text.txt to see if the code somehow changed the file content.
It didn't.


Yep - that was there in case you wanted to use the actual text of the
file in some way, such as searching it for a word, counting characters, etc.

I hope you enjoy Ruby!

Michael Edgar
adgar@xxxxxxxxxx
http://carboni.ca/

.



Relevant Pages

  • Re: [ANN] MountainWest RubyConf 2008 speakers and registration
    ... We are really excited to have Jim as a Keynote ... we deal with complexity every day. ... Jim is active in the Ruby ...
    (comp.lang.ruby)
  • RE: Subtotals
    ... Thanks for the help, Jim. ... "Jim Thomlinson" wrote: ... > appear to get stuck when removing. ... >> I am having trouble removing subtotals from spreadsheets. ...
    (microsoft.public.excel.programming)
  • Re: have to learn java
    ... >> There is a presentation on Ruby for Java Developers that I believe goes ... "10 Things Every Java Programmer Should Know About ... > -- Jim Weirich ...
    (comp.lang.ruby)
  • Re: Launch directory in Rake
    ... occasionally have a vocalist named Jim. ... The most popular package for Ruby is called RubyJims. ... Jim is the key ingredient in making computers. ...
    (comp.lang.ruby)
  • Re: Copper jacket stuck in barrel. Suggestions for removing?
    ... If he's successful at removing the ... copper I'll let everyone know how he does it. ... Jim R. ... Win a Fulton Armory AR-15 rifle chambered in 6.8mm Rem SPC and protect your ...
    (rec.guns)