Saving key and value to default file