Skip to content

Commit

Permalink
Slurping a file in, printing it out.
Browse files Browse the repository at this point in the history
  • Loading branch information
steveklewis committed Feb 26, 2015
1 parent a60b3bd commit 680b7a5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions surfchase/resources/beaches.json
@@ -0,0 +1,6 @@
{"beaches": [
{"name": "St. Petersburg/Clearwater"},
{"name": "Sarasota"},
{"name": "Ft. Lauderdale"},
{"name": "Cocoa Beach"}
]}
3 changes: 2 additions & 1 deletion surfchase/src/surfchase/core.clj
Expand Up @@ -4,4 +4,5 @@
(defn -main
"I don't do a whole lot ... yet."
[& args]
(println "Hello, World!"))

(println (slurp (.getFile (clojure.java.io/resource "beaches.json"))))

0 comments on commit 680b7a5

Please sign in to comment.