Function latin::file::read_string_utf8 [] [src]

pub fn read_string_utf8<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 or the file is not utf8, an error is returned.

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