Lisp HUG Maillist Archive

Reading a file into a bit vector?

What's the easiest way to read the contents of a file into a bit-vector? I've tried using read-sequence targeting an array with :element-type bit, but it gives an odd internal error message.

Mark

Re: Reading a file into a bit vector?

If speed is not an issue you might want to try this:

  http://weitz.de/odd-streams/

HTH,
Edi.




On Tue, Jul 28, 2015 at 7:32 PM, Mark Green <mark@antelope.nildram.co.uk> wrote:
> What's the easiest way to read the contents of a file into a bit-vector?
> I've tried using read-sequence targeting an array with :element-type bit,
> but it gives an odd internal error message.
>
> Mark
>

_______________________________________________
Lisp Hug - the mailing list for LispWorks users
lisp-hug@lispworks.com
http://www.lispworks.com/support/lisp-hug.html


Updated at: 2020-12-10 08:33 UTC