How to determine free space on USB thumb drive....
I have been programming in assembler for a good few years, but C is still fairly new to me. I am working on a project based on Microchip's Thumb Drive Data Logger Demo. I have probably missed something really obvious, (apologies in advance if that is the case) but I can't see a way to determine the remaining free space on the thumb drive. This project needs to delete the oldest files on the drive in order to maintain a certain amount of free space, so it doesn't become full during logging. Anyone got any ideas? Your help would be greatly appreciated.