Servando G. wrote:
I have a custom file filled with a word list. How do call it in my main
I have tried “require wordlist” but ruby can’t find the file
In C/C++ I would have used Include<wordlist.h> or for python I would
have used “import wordlist” so long as the wordlist was placed in the
same directory I am good. So how do I do this using ruby
require is a method call that takes a string.
‘wordlist’ needs to be in some directory that is part of the Ruby
interpreter’s current load path.
Before I forget I want to thank everyone for their help. I am really
liking Ruby and I finally understand how to use symbols
Great! Now learn to abuse them!
http://www.ruby-doc.org - Ruby Help & Documentation
http://www.artima.com/rubycs/ - The Journal By & For Rubyists
http://www.rubystuff.com - The Ruby Store for Ruby Stuff
http://www.30secondrule.com - Building Better Tools