Create File Rust

[Solved] Create File Rust | Rust - Code Explorer | yomemimo.com
Question : create file rust

Answered by : ali-ahmed

use std::fs::File;
fn main() -> std::io::Result<()> { let mut f = File::create("foo.txt")?; Ok(())
}

Source : https://doc.rust-lang.org/std/fs/struct.File.html | Last Update : Sun, 25 Oct 20

Answers related to create file rust

Code Explorer Popular Question For Rust