pub fn write_text(path: &Path, contents: &str) -> Result<()>
Write contents to a file at path, creating it if missing and truncating it if it already exists.
contents
path