Write A String To A File In Rust
I searched for fifteen minutes for how to write a Rust String
out to a file. Never did find it. Everything just shows how to write bytes. Probably that makes sense in ways that I don't understand but this works for what I'm trying to do.
This works though:
use fs;
And if you want it in a function:
use fs;
-- end of line --