From: Chris Richards Date: 2007-10-30T20:11:02+09:00 Subject: Is there a better way to do this? (write something to a file Is there a better way to write text to a file? File.open("/file/location/new.txt","w") {|file| file.write "data to write"} It just seems a bit long winded and unmessy Thanks Chris -- Posted via http://www.ruby-forum.com/.