# Rust - write to file

* File
* Write
* create
* writeln!

* [std::fs::File](https://doc.rust-lang.org/std/fs/struct.File.html)
* [std::io::Write](https://doc.rust-lang.org/std/io/trait.Write.html)

{% embed include file="src/examples/files/write/src/main.rs" %}


