Function write_text_file
Source pub fn write_text_file(path: &Path, content: &str) -> Result<()>
Expand description
Writes a text file atomically with proper error handling.
§Arguments
path - The path to write to
content - The text content to write
§Returns
Ok(()) on success
§Errors
Returns an error with context if the file cannot be written