Hello,
maybe this will help - Read data from txt file (nucleo F401RE) - Mbed OS - Arm Mbed OS support forum
BR, Jan