SD card shield confusion

Okay I am so confused at this point I have played with dozens of arduino sensors and never had trouble setting them up or finding documentation on to make them run.

But I have finally hit a wall on using the sd card shield. I have attached a image of the one I purchased all I want is some code to write hello world to a text file on it.

I have followed every tutorial I can find but I can't even figure out how to wire it.

Obviously I know the simple like
GND -> GND
But the rest I'm at a lose for.

Apparently my image was to large to attach I will re upload in the next 30 minutes or so.

Here is the image any help is greatly appreciated.

Chardy:
Here is the image any help is greatly appreciated.

Connect Gnd->GND

| Arduino Uno Pin | | Arduino Mega Pin | | SDCard Pin |
| - | - | - |
| 5V | 5V | 5V |
| 10 | 53 | CS |
| 11 | 51 | MOSI |
| 12 | 50 | MISO |
| 13 | 52 | SCK |

This is a good starting point.

Chuck.

Chardy:
But I have finally hit a wall on using the sd card shield. I have attached a image of the one I purchased all I want is some code to write hello world to a text file on it.

chucktodd has already addressed the wiring issue.
Ensure you don't need to level shift the SPI signals, although those look like resistors on the SPI lines so you might be ok.

The code depends on the library you use.
The default library is the SD library which gives u some example code.