Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUST

create file rust

use std::fs::File;

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