Maybe you can get some use from this?
http://www.picbasic.co.uk/forum/cont...USB-SD-LOGGING