SD examples and chip select definition

Hi, regarding Mega2560 (or DUE) and Ethernet 25j60 (or W5100) and SD card at the same time:
There are many notes, instructions and warnings on this topic. Unfortunately, the problem persists.
Please ask: is there a functional demo for the combination ?:
Board: Mega2560 (or DUE) a
Module / shield: 28j60 / W5100 together with SD card?
Of course, with reference to specific libraries? Thank you, mpcz, 18aug2019