From 6e19b9ddff262a898b59101fe6c0dc8835336534 Mon Sep 17 00:00:00 2001 From: jacekpoz Date: Thu, 9 May 2024 01:58:14 +0200 Subject: [PATCH] write true openoptions --- lab3/zad2/src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/lab3/zad2/src/main.rs b/lab3/zad2/src/main.rs index d979c42..807fec4 100644 --- a/lab3/zad2/src/main.rs +++ b/lab3/zad2/src/main.rs @@ -78,6 +78,7 @@ fn main() -> io::Result<()> { let mut results_file = OpenOptions::new() .create(true) + .write(true) .truncate(true) .open(format!("./results/k1"))?;