Answers for "open or create a file Rust"

0

create file rust

use std::fs::File;

fn main() -> std::io::Result<()> {
    let mut f = File::create("foo.txt")?;
    Ok(())
}
Posted by: Guest on October-18-2020

Code answers related to "open or create a file Rust"

Browse Popular Code Answers by Language