Skip to main content

write_text_file

Function write_text_file 

Source
pub fn write_text_file(path: &Path, content: &str) -> i32
Expand description

Writes a text document through durable atomic replacement.

§Parameters

§Returns

Returns the computed value produced by crate::fs::write_text_file.

§Examples

ⓘ
let _result = pharos_runtime_core::fs::write_text_file(std::path::Path::new("fixture.json"), todo!());
  • crate::fs for adjacent helpers that share the same runtime surface.