SD card datalogging files library

Yes, I tried C++ with AVR Studio, but it doesn´t run.

And how can I convert all my files from AVR Studio to Arduino ? I have .c and .h files. If I open it in arduino, it writes "it can only open its own sketches or files in .pde"

And how can i test your SD datalogger ? I open it in arduino, I press scetch/verify and where do I have .hex file to my ATmega 168 ?

Thank you for your answer.