mirror of
https://github.com/ChenKaiLiuG/find_your_own_fxxking_problem.git
synced 2026-06-17 16:54:24 +00:00
18 lines
335 B
Rust
18 lines
335 B
Rust
use std::fs;
|
|
use std::io;
|
|
|
|
fn main() -> io::Result<()> {
|
|
let filename = "找找自己問題.txt";
|
|
|
|
match fs::read_to_string(filename) {
|
|
Ok(contents) => {
|
|
println!("{}", contents);
|
|
}
|
|
Err(e) => {
|
|
eprintln!("無法讀取檔案 '{}': {}", filename, e);
|
|
}
|
|
}
|
|
|
|
Ok(())
|
|
}
|