Dodaj do złożenia rdzy

// don't forget importing this
use std::io::Write;

let mut file = fs::OpenOptions::new()
      .write(true)
      .append(true)
      .open("file.txt")
      .unwrap();
      
file.write_all(b"to append");
// or
write!(file, "to append");
ali ahmed