How to save file as a settings
The settings form does not save entries to a file, but stores the value in the database. It can only be called from a custom module you will have to build.

Below you will find a link to Drupal's own module tutorial. Follow the steps and you will come across the usage of the settings page. (configuration form)

http://drupal.org/node/361112