From ... From: Erik Naggum Subject: Re: Why there's no unread-byte? Date: 1999/03/11 Message-ID: <3130103987436896@naggum.no>#1/1 X-Deja-AN: 453617315 References: <7c71vd$h3v$1@news.ptc.spbu.ru> mail-copies-to: never Organization: Naggum Software; +47 8800 8879; http://www.naggum.no Newsgroups: comp.lang.lisp * "Valeriy E. Ushakov" | What is the reason behind having PEEK-CHAR and UNREAD-CHAR in the | standard, but not PEEK-BYTE and UNREAD-BYTE. If I want to read a file | with possibly mixed CR, LF and CRLF end-of-lines in binary mode (meaning | C-speak "binary", i.e. stream element type (unsigned-byte 8)), how can I | peek at the possible LF after the CR? you read the entire file (or a reasonable fraction thereof) into a vector with READ-SEQUENCE first. (I hope we get memory-mapped file I/O soon.) #:Erik