Skip to content

Instantly share code, notes, and snippets.

@dlt
Created May 11, 2011 16:34
Show Gist options
  • Save dlt/966822 to your computer and use it in GitHub Desktop.
Save dlt/966822 to your computer and use it in GitHub Desktop.
:)
def file_copy(src, dest)
File.open(dest, 'wb') { |f| f.puts(File.read(src)) }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment