TinyFAT Library

Look at sprintf() You format a string that you can then write to the file.