🤖【Rust】ファイルの書き出し2022/07/23に公開2022/07/28Rusttech#![allow(unused)] use std::fs::File; use std::io::prelude::*; fn main() -> std::io::Result<()> { let mut file = File::create("memo.txt")?; file.write_all(b"hello, world!")?; Ok(()) } Discussion
Discussion