Utility functions for file and resource I/O operations.
Utility functions for file and resource I/O operations.
(load-resource path)Load a resource file from the classpath.
Parameters: -path: Resource path relative to classpath root
Returns: Sequence of lines from the resource
Load a resource file from the classpath. Parameters: -path: Resource path relative to classpath root Returns: Sequence of lines from the resource
(save-file filename content)Save content to a file.
Parameters:
Returns: Path to saved file
Save content to a file. Parameters: - content: SString content to save - filename: Output filename Returns: Path to saved file
(write-edn w obj)Write a Clojure object as EDN to a writer.
Parameters:
Returns: nil
Write a Clojure object as EDN to a writer. Parameters: - w: Writer to write to - obj: Clojure object to serialize Returns: nil See https://ask.clojure.org/index.php/14203/how-to-persist-clojure-data-structures-to-disk?show=14205#a14205.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |