Skip to content

Instantly share code, notes, and snippets.

@ahyatt
Created November 6, 2010 03:28
Show Gist options
  • Save ahyatt/665169 to your computer and use it in GitHub Desktop.
Save ahyatt/665169 to your computer and use it in GitHub Desktop.
Opening files the repetitive way
(let ((stream (open "/foo/bar/baz")))
(unwind-protect
(progn
;; perform some actions with the file
)
(close stream)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment