Config File

How do i create a config file and then edit it in the code ?
There was a tutorial somewhere here (i cant find it) and it was not detailed (or explained).
So could somebody maybe explain the whole configuration thing to me.
Thanks a lot.

We have a basic doc which explains how to create the Object in your code, and then an advanced doc which explains how to manipulate it.