Guest User

Zipfile - NIm

a guest
May 2nd, 2015
405
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nim 0.20 KB | None | 0 0
  1. import zipfiles
  2. var z: TZipArchive
  3. if open(z, "d3vil.zip"):
  4.   echo("Zip file opened")
  5.   extractAll(z, "/home/d3vil/Nimprogs/")
  6. else:
  7.   echo("Cannot open archive file")
  8. close(z)
  9. echo("Extracted")
Advertisement
Add Comment
Please, Sign In to add comment