Re
Je pense avoir eu le problème avec une Mega 1280. Ajoute dans ton setup():
// On the Ethernet Shield, CS is pin 4. It's set as an output by default.
// Note that even if it's not used as the CS pin, the hardware SS pin
// (10 on most Arduino boards, 53 on the Mega) must be left as an output
// or the SD library functions will not work.
pinMode(53, OUTPUT); //53 for MEGA, 10 for other arduino TODO check if no interference with ethernet
la pin 53 doit être déclarée en sortie (et pas utilisé bien sûr)
Gromain