First example: reading and writing meshes.