Hello,
I'm trying to found out how to write a hash table to a file in java.
Can someone please help me or point me to a good tutorial.
Thank you
teja - 21 Feb 2006 11:16 GMT
check it out
http://builder.com.com/5110-6370-1049463.html
http://builder.com.com/5100-6370-1049436.html
Roedy Green - 24 Feb 2006 20:31 GMT
>I'm trying to found out how to write a hash table to a file in java.
>Can someone please help me or point me to a good tutorial.
see http://mindprod.com/jgloss/HashMap.html
http://mindprod.com/jgloss/HashTable.html
It will tell you more than you wanted to know. Follow links to Sun's
documentation, and believe it or not, read the source.
It is far shorter than the English language explanations of how it
works.

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
Paul Hamaker - 24 Feb 2006 20:46 GMT
bburt083,
all collection implementations implement Serializable, so if the
elements in them are Serializable, too, you can write a collection to
disk using ObjectOutputStream plus FileOutputStream.
For an example of using OOS, you could look at this lesson :
http://javalessons.com/cgi-bin/fun/java-tutorials-main.cgi?ses=ao789&sub=adv&code=obs
--------------------
Paul Hamaker, SEMM, teaching ICT since 1987
http://javalessons.com