Rust input/output

From wikinotes
Revision as of 01:01, 9 February 2023 by Will (talk | contribs)

Documentation

std::fs https://doc.rust-lang.org/std/fs/index.html

user input

let name = String::new();
io::stdin().read_line(&mut name);

Files