Reading a file from device,

Hi,

Does anyone know a way were I can read file data from the device, so that my app can work like the Run, Swim, Strength apps?  They read workout data from a fit file stored on the watch, but I'm not sure how to achieve this?

Thanks

Luke