Quickutilβ

Lisp utilities on demand

Fork me on GitHub
search

There are 9 utilities.

with-open-file* v1.0

Just like with-open-file, but nil values in the keyword arguments mean to use the default value specified for open.

Provides
with-open-file*
Requires
once-only
Source Code
 
with-input-from-file v1.0

Evaluate body with stream-name to an input stream on the file file-name. args is sent as is to the call to open except external-format, which is only sent to with-open-file when it's not nil.

Provides
with-input-from-file
Requires
with-open-file*
Source Code
 
with-output-to-file v1.0

Evaluate body with stream-name to an output stream on the file file-name. args is sent as is to the call to open except external-format, which is only sent to with-open-file when it's not nil.

Provides
with-output-to-file
Requires
with-open-file*
Source Code
 
read-file-into-string v1.0

Return the contents of the file denoted by pathname as a fresh string.

The external-format parameter will be passed directly to with-open-file unless it's nil, which means the system default.

Provides
read-file-into-string
Requires
with-input-from-file
Source Code
 
write-string-into-file v1.0

Write string to pathname.

The external-format parameter will be passed directly to with-open-file unless it's nil, which means the system default.

Provides
write-string-into-file
Requires
with-output-to-file
Source Code
 
read-file-into-byte-vector v1.0

Read pathname into a freshly allocated (unsigned-byte 8) vector.

Provides
read-file-into-byte-vector
Requires
with-input-from-file
Source Code
 
write-byte-vector-into-file v1.0

Write bytes to pathname.

Provides
write-byte-vector-into-file
Requires
with-output-to-file
Source Code
 
copy-file v1.0

Copy a file from from to to.

Provides
copy-file
Requires
copy-stream, with-output-to-file, with-input-from-file
Source Code
 
copy-stream v1.0

Reads data from input and writes it to output. Both input and output must be streams, they will be passed to read-sequence and write-sequence and must have compatible element-types.

Provides
copy-stream
Requires
sub-interval-numeric-types
Source Code