Function xshell::write_file[][src]

pub fn write_file(
    path: impl AsRef<Path>,
    contents: impl AsRef<[u8]>
) -> Result<()>

Writes the contents into the file at path, creating the file if it didn’t exist already.