know if a line exist rust code example
Example: check if a file exists rust
use std::path::Path;
fn main() {
println!("{}", Path::new("/etc/hosts").exists());
}
use std::path::Path;
fn main() {
println!("{}", Path::new("/etc/hosts").exists());
}