Using the arduino sd library requires much memory space. This code shows how to read the contents of a file and needs only about 4k program space and 1k ram for buffering.