added binarie read/write for grid_?.pre