From ... From: Erik Naggum Subject: Re: reading/writing bytes smaller than 8 bits? Date: 2000/01/26 Message-ID: <3157890572406899@naggum.no>#1/1 X-Deja-AN: 577919293 References: <86maef$qmq$1@nnrp1.deja.com> mail-copies-to: never Content-Type: text/plain; charset=us-ascii X-Complaints-To: newsmaster@eunet.no X-Trace: oslo-nntp.eunet.no 948908418 20799 195.0.192.66 (26 Jan 2000 17:40:18 GMT) Organization: Naggum Software; +47 8800 8879 or +1 510 435 8604; fax: +47 2210 9077; http://www.naggum.no User-Agent: Gnus/5.0802 (Gnus v5.8.2) Emacs/20.5 Mime-Version: 1.0 NNTP-Posting-Date: 26 Jan 2000 17:40:18 GMT Newsgroups: comp.lang.lisp * Andrew Cooke | Ouch! Next week I'm planning to write code that generates binary files | to a certain standard (Midi music data). I haven't checked the docs yet, | but this post implies that there is no way to generate files with a | specified binary format (at least that other people or other Lisps can | use with certainty). Is that correct? What do people do when they need | to write a formatted binary file? Or does everyone use just Lisp | programs ;-) ? locate your misplaced calm and _breathe_, mister, you're near hysterical. if you know that the medium is an 8-bit medium, opening a stream for writing to or reading from it as (UNSIGNED-BYTE 8) is guaranteed to produce the expected results by virtue of the insanity of not doing so. if you need control over the individual bits, you don't request a service where you explicitly say "do the smartest thing you can with my request". please realize that the Common Lisp community is more than 40 years old. collectively, the community has already been where every clueless newbie will be going for the next three years. so relax, please. #:Erik