how can i read a code written in arduino chip
You can retrieve the machine code using avrdude, but whether that's you mean I don't know.
As far as I know, you can't retrieve the sketch from the Arduino chip as it's encoded on the chip.
All you get out is machine code which can't be converted back to English in a readable form.
It would be a nice feature if you could.