Function file::get_text
[−]
[src]
pub fn get_text<P: AsRef<Path>>(path: P) -> Result<String>
Read an UTF-8 encoded file into String
from the given path.
The path can be a string or a Path
.