From: Marc Heiler Date: 2011-09-12T00:01:47+09:00 Subject: Re: making an array of strings > I want to make an array of strings, i.e boy, girl, cat dog > how do I do that in Ruby? array = %w( boy girl cat dog ) > Also, I want to read words from a file and make them an > array of strings. I can read files fine but making an > array of strings is where I am stumped. location_of_your_file_goes_here = '/tmp/foobar.txt' array = File.readlines(location_of_your_file_goes_here) -- Posted via http://www.ruby-forum.com/.