I use the SD card on the ethernet shield so I can replace the Arduino/shield, insert the old SD card into the new shield and use the same network settings without programming the settings into the Arduino. Just my preference...
BTW, if you store them in PROGMEM, you can't change them with this code.