Maybe it would help if I posted the code, I'm not sure I understand... 
For example..:


def cityList
c_list = ['Boston', 'Nashville', 'San Francisco', 'Houston', 'Portland', 
'Atlanta', 'Chicago', 'Indianapolis', 'Charleston']

bar = '|| '


puts bar + c_list[0..2].join(' pets || ') + (' pets ||')

puts bar + c_list[3..5].join(' pets || ') + (' pets ||')

puts bar + c_list[6..8].join(' pets || ') + (' pets ||')

end

cityList


puts 'File completed. Save as..?'
save_as = gets.chomp



File::open('c:\rubyfiles\citylist-' + save_as + '.txt', 'w') do |f|


***********

I need it to take the output of that method that I created and write it 
to a file... I'm not sure I understand how to do that with the example 
you gave. Since I know the code that I had after "File::open", etc. was 
wrong, I just left it out.

It would also be nice if I could have the method cycle through 3 items 
in the array, then write 3 to a new line, the continue in increments of 
3 until it reaches the end of the array. But, I'm not sure if I should 
write another topic to ask that or if someone will answer that here. 
Thanks for the help so far, though... I'm pretty new at this.
-- 
Posted via http://www.ruby-forum.com/.