Skip to main content

write_file

Function write_file 

Source
pub fn write_file(path: &str, contents: &str) -> Result<(), String>
Expand description

Write a string to a file, creating it if it doesn’t exist or truncating it.