How do I save and read strings, Et. El. ?

This stuff is working out quite well.
What with your timely and on-point answers to my questions!
Next, I want to save some things along with my sounds in my on-disk scratch space:
Something akin to the PRAMS used in the (AUD-DO ~~~~~) things, but to and from disk along with my sounds.
I am not the most astute student, but I cannot find in the Nyquist Manual any reference to saving or retrieving Strings from disk.

Something like: “(str-save ~~~~ ~~~)” and “(str-read ~~~)”.

Thanks for your help!
~ Dalagar

To write text to a file, you need to “open” a file for writing, then you can write to the file using the FORMAT command. After writing, close the file.

The first argument of the FORMAT command says where the text will be written to. Usually we send text to the default output with
(format nil …)
or to the debug output with
(format t …)
but we can also direct to a file using a file-pointer:
(format …)
(XLISP format)

The OPEN command opens a file stream (which can be a file on disk) for reading or writing. It returns a pointer to the file / file stream.
(XLISP open)

(setf filename "full-path-and-file-name")
(setf file-pointer (open filename :direction :output)
(format file-pointer "Text to be written")

For reading the file back in, you probably want to use READ or READ-LINE

Note that Nyquist does not support Unicode. All characters written should be normal, single byte, printable ASCII characters. That’s the printable characters in the range 0 to 127 in the table at the top of this page: