[−][src]Function lines_from_file::lines_from_file
pub fn lines_from_file(filename: impl AsRef<Path>) -> Vec<String>
Returns a Vec
Examples
fn main() {
let lines = lines_from_file("foo.txt");
for line in lines.iter() {
if line == line.next() {
println!("Duplicated content !");
}
}
}```