A functionalized polymer film allowing for a complete and straightforward second-harmonic generation (SHG)-assisted high-contrast writing−reading−erasing−writing sequence is proposed. The whole process is supported by the reversible photoinduced dimerization of a coumarin chromophore and enables efficient optical data storage that can be detected only by SHG imaging.