Function fsutils::read_file [−][src]
pub fn read_file(path: &str) -> String
Expand description
Reads data from a file
and returns a String
with the files’s contents
Usage:
fsutils::write_file("text.txt", "Hello, world!"); assert_eq!(fsutils::read_file("text.txt"), "Hello, world!");