How do you read and write the settings file (provide some code)?