Re: Writing and reading hashes from files ...

Roberto Brunelli <[email protected]> Mon, 08 Jan 2007 16:36:14 +0100
Newsgroups gmane.comp.java.sisc.user
Message-ID <[email protected]>
Sorry,

I meant hashtables from SRFI-69: I currently map them to association lists when writing 
and then I recreate the hashtables upon reading them back. When I try to read them after 
writing them directly, it seems that no reading hook is automatically triggered for 
reading their print representation.



Scott G. Miller wrote:
> On Mon, Jan 08, 2007 at 09:10:29AM +0100, Roberto Brunelli wrote:
>> Dear siscers,
>>
>> is it possible to write/read hashes to files in (nearly) the same way as standard scheme 
>> expressions?
> 
> What kind of hashes?  Message digests?  If so, it should be fairly easy 
> to wrap DigestInputStream using the Java Ports API described here:
> 
> http://sisc.sourceforge.net/manual/html/ch05.html#JavaPorts
> 
> Then you simply read the file through it and obtain the digest using 
> S2J.
> 
> Scott
> 

-- 
	<r/>
| Roberto Brunelli - [scientist at  ITC-irst]
| 'Home can be anywhere, for it is a part of one's self'

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV