Skip to content

Instantly share code, notes, and snippets.

@lhohan
Created September 2, 2013 10:58

Revisions

  1. lhohan created this gist Sep 2, 2013.
    5 changes: 5 additions & 0 deletions new_gist_file
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    import java.io.{File,FileInputStream,FileOutputStream}
    val src = new File(args(0))
    val dest = new File(args(1))
    new FileOutputStream(dest) getChannel() transferFrom(
    new FileInputStream(src) getChannel, 0, Long.MaxValue )