Leia o conteúdo do arquivo em ferrugem
use std::fs;
fn main() {
let data = fs::read_to_string("file_name.txt").expect("Unable to read file");
println!("{}", data);
}
Bijay Poudel