Rust input/output: Difference between revisions
From wikinotes
(→print) |
No edit summary |
||
Line 1: | Line 1: | ||
= Documentation = | |||
<blockquote> | |||
{| class="wikitable" | |||
|- | |||
| <code>std::fs</code> || https://doc.rust-lang.org/std/fs/index.html | |||
|- | |||
|} | |||
</blockquote><!-- Documentation --> | |||
= user input = | = user input = | ||
Line 7: | Line 15: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
</blockquote><!-- input --> | </blockquote><!-- input --> | ||
= Files = | |||
<blockquote> | |||
</blockquote><!-- Files --> |
Revision as of 01:01, 9 February 2023
Documentation
std::fs
https://doc.rust-lang.org/std/fs/index.html
user input
let name = String::new(); io::stdin().read_line(&mut name);