Skip to content

Instantly share code, notes, and snippets.

@brighid
Last active December 15, 2015 08:58
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 brighid/5234382 to your computer and use it in GitHub Desktop.
Save brighid/5234382 to your computer and use it in GitHub Desktop.
A brittle way to read a conf file in Clojure.
(ns my-project.core
(:require [clojure.java.io :as io])
(:import [java.io PushbackReader]))
(with-open
[r (io/reader (io/resource "bar.conf"))]
(read (PushbackReader. r)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment