title: Efficient reading/writing of key/value pairs to file in Java
body: <p>I'm looking for thoughts as to what might be the most efficient way to write/read a large (10,000,000+) set of key/value pairs each consisting of a string of arbitrary length followed by a long integer to/from a file in Java.  Any suggestions much appreciated.</p>