update file write