scheme-libraries/retropikzel/mouth
retropikzel c0beecc251 Add library with spit and slurp 2026-02-10 08:15:59 +02:00
..
LICENSE Add library with spit and slurp 2026-02-10 08:15:59 +02:00
README.md Add library with spit and slurp 2026-02-10 08:15:59 +02:00
VERSION Add library with spit and slurp 2026-02-10 08:15:59 +02:00
test.scm Add library with spit and slurp 2026-02-10 08:15:59 +02:00

README.md

Spit and slurp. Read whole file, or output into file.

(slurp file-path)

Read whole contents of a file as text.

(spit file-path text . append?)

Output the text into a file. If append is #t then text is added to the end. Otherwise the file is deleted and rewritten.