Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUST

how to open a file rust

use std::fs::File;

fn main() -> std::io::Result<()> {
    let mut f = File::open("foo.txt")?;
    Ok(())
}
Source by doc.rust-lang.org #
 
PREVIOUS NEXT
Tagged: #open #file #rust
ADD COMMENT
Topic
Name
7+4 =