Skip to content

Instantly share code, notes, and snippets.

Created January 4, 2012 19:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/1561483 to your computer and use it in GitHub Desktop.
Save anonymous/1561483 to your computer and use it in GitHub Desktop.
user=> (spit "blubber.txt" "test")
nil
user=> (slurp "blubber.txt")
"test"
user=> (spit "event.log" "test 1\n" :append true)
nil
user=> (spit "event.log" "test 2\n" :append true)
nil
user=> (println (slurp "event.log"))
test 1
test 2
nil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment