Function fsutils::write_file[][src]

pub fn write_file(path: &str, contents: &str) -> bool
Expand description

Reads data to a file and returns a bool on success

Usage:

fsutils::write_file("text.txt", "Hello, world!");

assert_eq!(fsutils::read_file("text.txt"), "Hello, world!");