You have lost me.
Where is the file being saved? Are you meaning save the data to eeprom?

This page has several samples.
http://www.melabs.com/resources/samples.htm