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/.