[−][src]Function dia_files::read_file
pub fn read_file<P>(file: P, limit: Option<usize>) -> Result<Vec<u8>> where
P: AsRef<Path>,
Reads a file
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()
.