Liking cljdoc? Tell your friends :D

org.soulspace.qclojure.util.io

Utility functions for file and resource I/O operations.

Utility functions for file and resource I/O operations.
raw docstring

load-resourceclj

(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
sourceraw docstring

save-fileclj

(save-file filename content)

Save content to a file.

Parameters:

  • content: SString content to save
  • filename: Output filename

Returns: Path to saved file

Save content to a file.

Parameters:
- content: SString content to save
- filename: Output filename

Returns:
Path to saved file
sourceraw docstring

write-ednclj

(write-edn w obj)

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.

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.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close