[Energia Library] Petit FatFS SD Card Library in MSP Energia Libraries Posted March 16, 2018 Petit FatFS SD Card Library works well enough to read and copy the files. Kudos I want to know a possible way to 'create and delete a file' in code run-time. I am expecting to use FIFO method to log data and send it sequentially later over a channel. So one solution i know is to create a temporary file, add the data from original file to temporary file except the one to be deleted and then delete the old file. Trying to create a file in run-time gives an error rc=3.