Function ezio::file::write

source ·
pub fn write(path: impl AsRef<Path>, s: &str)
Expand description

Write a string to a file.

The path argument specifies the path to the file to write to. It may be either a Path, a string, or any other type that can be converted (using AsRef) to a Path. If the file does not exist, it will be created.

Panics if the file cannot be opened or created.