面试题答案
一键面试use std::fs::read_to_string;
fn read_file_content(file_path: &str) -> Result<String, std::io::Error> {
read_to_string(file_path)
}
use std::fs::read_to_string;
fn read_file_content(file_path: &str) -> Result<String, std::io::Error> {
read_to_string(file_path)
}