tof_dataclasses::io

Function read_file

Source
pub fn read_file(filename: &Path) -> Result<Vec<u8>>
Expand description

Read an entire file into memory

Represents the contents of a file as a byte vector

ยงArguments:

  • filename : full path to the file to be read