Overwrite file