use File#write instead of File::write that isn't supported by ruby-1.9.2
Merge pull request #67 from virginia-rodriguez/support_ruby-1.9.2

use File#write instead of File::write that isn't supported by ruby-1.9.2