I want to read data from sensors (both analog and digital sensors) and save it into SD card by using arduino. Is there any basic program that help me out in doing this as this is the first time I am using arduino boards
This is not a product recommendation site, and this answer should not be taken as such.
Adafruit has produced a data logging shield for the Arduino that is open source licensed and has sample code: Data-Logger shield. It can be purchased here or you could build your own since it is open source.