title: How to store a hash table in a file?
body: <p>How can I store a hash table with separate chaining in a file on disk?</p>
  
  <p>Generating the data stored in the hash table at runtime is expensive, it would be faster to just load the HT from disk...if only I can figure out how to do it.</p>
  
  <p>Edit:
  The lookups are done with the HT loaded in memory. I need to find a way to store the hashtable (in memory) to a file in some binary format. So that next time when the program runs it can just load the HT off disk into RAM.</p>
  
  <p>I am using C++.  </p>