Could you be a bit more specific? The answer depends on your processor/board or better on the file system on your SD card. E.g. for the i.MX RT family you could run FreeRTOS and read the SD card content using the FatFS file system, where you have a read function which can store data say into a RAM buffer.