If you are on a sinking ship, this project might come in handy!
I used this example for save ECG signals in SD card. It was the adaptation of the SD card example from Arduino IDE.