How to initialize SD card using ethernet shield on Mega

I have set the SD chip select pin to 53
How do I set the
SPI MOSI pin to 50
SpI MOSO pin to 51
SPI SCK pin to 52
Examples I have found have said to change these settings, but not shown how to.
Am familiar with programing but not with C or C++..
Can anyone help me on this issue?

If the ethernet shield has a ICSP connector, you don't need to do anything different on the Mega as the Uno, except you must disable the w5100 SPI before starting the SD.

void setup() {
  pinMode(10, OUTPUT);
  digitalWrite(10, HIGH);
  // rest of your setup

Hi Surfer Tim
Thank you for your reply.
Your saying to set

pinMode( 10, OUTPUT);
digitalWrite(10, HIGH);

then later set pinMode(53, OUTPUT); as I am using a mega board.
The ethernet shield is using ICSP connector.
Tried this and still failed to initialize SD card.
Any other suggestions?

CardInfo2.ino (3.53 KB)