The diffraction beam can be machine read by a reading device which produces a reading light beam directed at the grating The reading device has a plurality of detectors positioned to be illuminated by the diffracted light beam Information can be stored in the optical memory by locally changing the optional properties of the grating