Datei in RUSR lesen

use std::fs;

fn main() {
    
    let contents = fs::read_to_string(filename)
        .expect("Something went wrong reading the file");

    println!("With text:\n{}", contents);
}
Bijay Poudel