read_leveldat function

Read and write data from a world's level.dat file.