Voxels. Saving and loading

Please help me so I make a nice map in voxels player that I want to use for my other program. So could some one please show me how to make some functions to save and load voxels. Or really the maps in the player example.

Thanks @pac