Fixed function name
Use Rust's file I/O
Better return type