Update (replace) a file

Replaces an existing file at the specified path with new content. The file must already exist.