script_helpers/
read_lines.rs1use std::{
2 fs::File,
3 io::{self, BufRead},
4 path::Path,
5};
6
7use crate::must_open_file::must_open_file;
8
9pub fn read_lines(file_path: &Path) -> io::Lines<io::BufReader<File>> {
10 io::BufReader::new(must_open_file(file_path)).lines()
11}