There are 9 utilities.
- with-open-file* v1.0
-
Just like
with-open-file
, butnil
values in the keyword arguments mean to use the default value specified foropen
.- Provides
with-open-file*
- Requires
- once-only
- with-input-from-file v1.0
-
Evaluate
body
withstream-name
to an input stream on the filefile-name
.args
is sent as is to the call toopen
exceptexternal-format
, which is only sent towith-open-file
when it's notnil
.- Provides
with-input-from-file
- Requires
- with-open-file*
- with-output-to-file v1.0
-
Evaluate
body
withstream-name
to an output stream on the filefile-name
.args
is sent as is to the call toopen
exceptexternal-format
, which is only sent towith-open-file
when it's notnil
.- Provides
with-output-to-file
- Requires
- with-open-file*
- 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 towith-open-file
unless it'snil
, which means the system default.- Provides
read-file-into-string
- Requires
- with-input-from-file
- write-string-into-file v1.0
-
Write
string
topathname
.The
external-format
parameter will be passed directly towith-open-file
unless it'snil
, which means the system default.- Provides
write-string-into-file
- Requires
- with-output-to-file
- 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
- write-byte-vector-into-file v1.0
-
Write
bytes
topathname
.- Provides
write-byte-vector-into-file
- Requires
- with-output-to-file
- copy-file v1.0
-
Copy a file from
from
toto
.- Provides
copy-file
- Requires
- copy-stream, with-output-to-file, with-input-from-file
- copy-stream v1.0
-
Reads data from
input
and writes it tooutput
. Bothinput
andoutput
must be streams, they will be passed toread-sequence
andwrite-sequence
and must have compatibleelement-type
s.- Provides
copy-stream
- Requires
- sub-interval-numeric-types