format and u9

This commit is contained in:
DavidOnTop 2024-12-06 09:15:40 +01:00
parent b8cfc80d1b
commit f1b2a8c9ba
No known key found for this signature in database
GPG key ID: 5D05538A45D5149F
11 changed files with 114 additions and 84 deletions

View file

@ -21,7 +21,11 @@ pub fn main() {
let out = fun(a, b);
println!("{}", out);
let mut file = std::fs::OpenOptions::new().write(true).create(true).open("output.txt").unwrap();
let mut file = std::fs::OpenOptions::new()
.write(true)
.create(true)
.open("output.txt")
.unwrap();
file.write_all(out.to_string().as_bytes()).unwrap();
}