[][src]Function dia_files::read_file_to_string

pub fn read_file_to_string<P>(file: P, limit: Option<usize>) -> Result<String> where
    P: AsRef<Path>, 

Reads a file and converts its content into a string

Notes

  • If data to be read exceeds limit, an error is returned. If you don't care about exceeding data, you can use Read::take().

See also

::read_to_string()