12 lines
218 B
Rust
12 lines
218 B
Rust
![]() |
use std::fs;
|
||
|
|
||
|
fn read_file(path: &str) -> String {
|
||
|
fs::read_to_string(path)
|
||
|
.expect("File not Found")
|
||
|
}
|
||
|
|
||
|
fn main() {
|
||
|
let contents = read_file("sample_input");
|
||
|
//let contents = read_file("input");
|
||
|
}
|