Extracting the code from a printer cartridge chip

and how do i read it?