pub fn set_file(path: Option<&str>) -> Result<(), RuntimeError>Expand description
Write to path, or pass None to stop writing to a file.
ยงErrors
Returns [RuntimeError::Failed] if the file cannot be opened, or
[RuntimeError::Nul] for an interior NUL in path.