Create writefile.rb