karat menulis untuk mengajukan
use std::fs::OpenOptions;
let mut content = String::from("Hallo World!);
let mut options = OpenOptions::new();
let mut file = options.write(true).open("foo.txt");
file.write(content.as_bytes());
SnefDen