override file content with the provided one