open settings file with write mode only