Can anybody tell me how to take the output of a method and save it to a
file?

I have an array and I've created a method to take the strings I put into
the array and insert them into a place in a sentence. How do I execute
the method and save the output to a file?  I just started with Ruby a
few days ago and I can have it save a file, but the file it saves is
empty.

Help, please?
-- 
Posted via http://www.ruby-forum.com/.