indexed_file 0.1.2

A library to index and read large files by its lines efficiently
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Index a normal text file and read a given line directly

use indexed_file::{Indexable, ReadByLine};

fn main() {
    // Open and index file
    let mut file = indexed_file::File::open_raw("<some unindexed file>").unwrap();

    // Get line count efficiently without reading the entire file
    let _line_count = file.total_lines();

    // Read line 30
    let _line_30 = file.read_line(30).unwrap();
}