This may help
http://www.picbasic.co.uk/forum/cont...USB-SD-LOGGING

Disregard the part telling about another version of SDFS.