Skip to content

Instantly share code, notes, and snippets.

@takagi
Created September 9, 2015 14:03
Show Gist options
  • Save takagi/f6151fa103ca27f810b1 to your computer and use it in GitHub Desktop.
Save takagi/f6151fa103ca27f810b1 to your computer and use it in GitHub Desktop.
flexi-streams's external format
(with-open-file (in "/Users/mtakagi/Desktop/bin" :direction :input
:element-type 'unsigned-byte)
(let ((buffer (make-array 256 :element-type 'unsigned-byte)))
(read-sequence buffer in)
(flexi-streams:octets-to-string buffer :external-format :utf-8)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment