Files
cipher-analytical-machine/src/cipher_analytical_machine/file.clj
T
KKlochko 617dd34a23
continuous-integration/drone/push Build is passing
Add an option to read a message from a file.
2023-09-12 21:55:48 +03:00

19 lines
369 B
Clojure

(ns cipher-analytical-machine.file
(:require [clojure.java.io :as io])
(:gen-class))
(defn is-file-exists?
"Checks that a file is exists"
[file-path]
(-> (io/file file-path)
(.exists)))
(defn is-file-not-exists?
"Checks that a file is not exists"
[file-path]
(not (is-file-exists? file-path)))
(defn read-file [file-path]
(slurp file-path))