From: Gyesung Lee
Subject: binary file access.
Date: 
Message-ID: <1992Jun4.205353.3872@vuse.vanderbilt.edu>
Hi.

I am wandering if there is a way to access (read/write) a
binary file in LISP. In fact, I need to access a binary
file created by C.

Thanks for your help in advance.

Gyesung.

-----------
  ······@vuse.vanderbilt.edu
From: Barry Margolin
Subject: Re: binary file access.
Date: 
Message-ID: <10m84oINN40r@early-bird.think.com>
In article <····················@vuse.vanderbilt.edu> ······@vuse.vanderbilt.edu (Gyesung Lee) writes:
>I am wandering if there is a way to access (read/write) a
>binary file in LISP. In fact, I need to access a binary
>file created by C.

Specify :ELEMENT-TYPE '(UNSIGNED-BYTE 8) in the call to OPEN, and use
READ-BYTE and WRITE-BYTE to read and write.
-- 
Barry Margolin
System Manager, Thinking Machines Corp.

······@think.com          {uunet,harvard}!think!barmar