Some help with a simple Accelerometer Logger

I am tearing my hair out with code for a simple accelerometer logger program.

I have an Arduino Nano (328) and MPU-6050 sensor. I hope to store the data to the SD Card.

Anyone help me with some code to do such a thing please?

Thanks

Did you try writing data to the sd card ?
Have a look at the examples : http://arduino.cc/en/Reference/SD

Do you want unfiltered accelerometer data ?
You can try the sketch in the Playground, at least to check that the sensor and I2C-bus is working.
http://playground.arduino.cc/Main/MPU-6050