pub fn write_string_sync(filename: &Path, text: &str) -> Result<()>
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.