From: Dark Ambient Date: 2006-07-07T00:50:44+09:00 Subject: Question: formatting strings from array for text files I'm not sure who to have an array format correctly when written to a text file. Doing something like myarray = ['five','four','three','two','one'] works almost correctly but myarray = ['.././*.docs'] seems to write them out without linebreaks. So while I can figure out how to print them nicely using some iterator to the screen Using, File.open filename, 'w' do |doc| doc.write myarray end I can't seem to figure out a way to format the strings correctly. Stuart