Crates.io | reverse-lines |
lib.rs | reverse-lines |
version | 0.1.1 |
source | src |
created_at | 2023-06-10 03:01:30.627293 |
updated_at | 2023-06-10 04:30:52.395882 |
description | Rust Iterator for reading files line by line with a buffer in reverse |
homepage | |
repository | https://github.com/Elizafox/reverse_lines |
max_upload_size | |
id | 886676 |
size | 12,227 |
This library provides a small Rust Iterator for reading files line by line with a buffer in reverse.
It is a rework of rev_lines.
Documentation is available on Docs.rs.
extern crate reverse_lines;
use reverse_lines::ReverseLines;
let file = File::open("/path/to/file").unwrap();
let mut reverse_lines = ReverseLines::new(file).unwrap();
for line in reverse_lines {
println!("{}", line.unwrap());
}