Function latin::file::read_string_utf8_lossy [] [src]

pub fn read_string_utf8_lossy<P: AsRef<Path>>(path: P) -> IoResult<String>

Reads the file at path and returns the content as a String

If the file at path does not exist an error is returned.

Any non-utf8 characters are stripped from the result. Please see std::String::from_utf8_lossy for more info.

 let contents = latin::file::read_string_utf8_lossy("foo.txt");