add write to file example