1 2 3 4 5 6 7 8
use karics::read_file; fn main() { match read_file("example.txt") { Ok(contents) => println!("File contents: {}", contents), Err(e) => eprintln!("Error reading file: {}", e), } }