pub fn write_string<P: AsRef<Path>>( path: P, contents: &str, ) -> Result<(), String>
Write string to file (helper for common case)