script_helpers/
any_line_starts_with.rs1use std::path::Path;
2
3use crate::read_lines::read_lines;
4
5pub fn any_line_starts_with(source: &Path, prefix: &str) -> bool {
6 for line in read_lines(source).map_while(Result::ok) {
7 if line.starts_with(prefix) {
8 return true;
9 };
10 }
11 false
12}