Skip to content

Instantly share code, notes, and snippets.

@tnoborio
Created November 15, 2010 02:46
Show Gist options
  • Save tnoborio/676358 to your computer and use it in GitHub Desktop.
Save tnoborio/676358 to your computer and use it in GitHub Desktop.
copy.clj
(import 'jxl.Workbook
'java.io.File)
(defn copy [from to]
(let [read-book (Workbook/getWorkbook (File. from))
write-book (Workbook/createWorkbook (File. to) read-book)]
(doto write-book
.write
.close)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment