From: "Peña, Botp" Date: 2007-10-31T10:27:26+09:00 Subject: Re: Is there a better way to do this? (write something to a From: Chris Richards [mailto:evilgeenius@gmail.com] # This isn't a file copy. I'm just writing data to a file. # This is equivalent : # File.open("/file/location/new.txt","w") {|file| file << "data # to write"} have you tried rio? require "rio" rio("/file/location/new.txt") << astring kind regards -botp