When the microprocessor 52 inputs the waveform data of the bar code B from the optical sensor 48, it decodes that waveform data to obtain information such as a product code that the bar code B is expressing and temporarily stores that information in a memory 54.