Write & append file.