help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

loading hash-table from a file?


From: ishi soichi
Subject: loading hash-table from a file?
Date: Thu, 5 Jan 2012 14:16:41 +0900

I have never used hash-table of Emacs Lisp but I believe it's useful as a database.

Say, I have a hundred key-value pairs, which are to be stored as hash-table. 
Can I save this as a (text?) file so that Emacs can load it when booting up?

I am a little confused because if I use (cons key value), it outputs "(key . value)" which can be written in a regular file.
If I wish to find the value from a key, all I need to do is to simply search through the file.

Do you think I can save the database using hash-table like this?

soichi

reply via email to

[Prev in Thread] Current Thread [Next in Thread]