X-Git-Url: http://git.kpe.io/?p=kmrcl.git;a=blobdiff_plain;f=io.lisp;h=8f38e0e6ca5fac9c9c016528d90b4a41990a5b72;hp=4f896ed7584219f32fd425f0fcab74b7cdf5a41b;hb=1ae2138bd3b547e03b1f49df90669687fb79bd3a;hpb=bd4335f8aae0d54db30524797fad02194311e17c diff --git a/io.lisp b/io.lisp index 4f896ed..8f38e0e 100644 --- a/io.lisp +++ b/io.lisp @@ -39,9 +39,8 @@ (defun read-file-to-string (file) "Opens a reads a file. Returns the contents as a single string" - (with-output-to-string (out) - (with-open-file (in file :direction :input) - (read-stream-to-string in)))) + (with-open-file (in file :direction :input) + (read-stream-to-string in))) (defun read-file-to-usb8-array (file) "Opens a reads a file. Returns the contents as single unsigned-byte array"