Function write_string_sync

Source
pub fn write_string_sync(filename: &Path, text: &str) -> Result<()>
Expand description

Write a string to a text file. If using within the web browser environment, a local storage key with the name of the file will be used.