diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2022-05-27 06:17:25 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2022-05-27 06:17:25 -0700 |
commit | 29c6d17108aca455ac5c7e2e26b996f3b0cb4469 (patch) | |
tree | 3535aa7d2d697e5adac7fe656153f4276e3fdbbe /stdlib/pmac.tl | |
parent | 3fc97c29d1407756bb3e7e36c40cfed966ef82f7 (diff) | |
download | txr-29c6d17108aca455ac5c7e2e26b996f3b0cb4469.tar.gz txr-29c6d17108aca455ac5c7e2e26b996f3b0cb4469.tar.bz2 txr-29c6d17108aca455ac5c7e2e26b996f3b0cb4469.zip |
I/O convenience functions get mode-opt argument.
This is motivated by the desired to be able to
specify gzip compression: e.g.
(file-put-string "file.gz" "abc" "z")
However, it has other uses. For instance with "x",
we can exclusively create a file with content in one
call.
* stdlib/getput.tl (file-get, file-put, file-append,
file-get-string, file-put-string, file-append-string,
file-put-lines, file-append-lines, file-get-buf,
file-put-buf, file-place-buf, file-append-buf, file-get-json,
file-put-json, file-append-json, file-get-jsons,
file-put-jsons, file-append-jsons): New option argument
which combines with the open-file mode.
* txr.1: Documented.
Diffstat (limited to 'stdlib/pmac.tl')
0 files changed, 0 insertions, 0 deletions