📜  创建文件 rust 代码示例

📅  最后修改于: 2022-03-11 14:49:24.679000             🧑  作者: Mango

代码示例1
use std::fs::File;

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