Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (defn convert-line-to-map-entry [line]
- (apply hash-map (str/split line #":")))
- (defn read-sensor-data
- "reads the file and returns a map of the following format:
- {\"key\" \"value\"}"
- [file-path]
- (with-open [rdr (io/reader file-path)]
- (doseq [line (line-seq rdr)]
- ;(println line)
- (convert-line-to-map-entry line))))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement