Bug fix : write_XYZ(), write_GridData(), write_DataRecord(), read_DataRecord()