Read and write HashMap