Skip to main content

read_file

Function read_file 

Source
pub fn read_file(
    path: &Path,
    committed: Option<u64>,
    each: impl FnMut(Record),
) -> Result<(), LearnError>
Expand description

Reads a folder’s records, up to committed bytes (all when None); a line that cannot be read is skipped, a member cut short ends the reading.