Added write to file button

Write to file button in settings