helper "use" method using currying for automatic resource management

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