[][src]Function ari::fs::write_all_text

pub fn write_all_text(path: impl AsRef<Path>, data: String) -> Result<(), Error>

creates a new file, write the contents to the file, and then closes the file. if the target file already exists, it is overwritten.