Example of currying: "use" helper method for resource management.

From http://stackoverflow.com/questions/2225214/scala-script-to-copy-files