Skip to main content

count_lines

Function count_lines 

Source
pub fn count_lines(path: &Path) -> SyncResult<usize>
Expand description

Count the number of lines in a JSONL file.

This is useful for showing statistics without loading all records into memory.

ยงErrors

Returns an error if the file cannot be read.