aboutsummaryrefslogtreecommitdiff
path: root/src/helper/init.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/helper/init.rs')
-rw-r--r--src/helper/init.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/helper/init.rs b/src/helper/init.rs
new file mode 100644
index 0000000..392e4fb
--- /dev/null
+++ b/src/helper/init.rs
@@ -0,0 +1,12 @@
+use std::fs::File;
+use std::io::{self, Write};
+
+pub fn print_in_file(content: String) -> io::Result<()> {
+ // Open the file (create it if it doesn't exist, or truncate it if it does)
+ let mut file = File::create("debug.txt")?;
+
+ // Write the content to the file
+ file.write_all(content.as_bytes())?;
+
+ Ok(())
+}
ArKa projects. All rights to me, and your next child right arm.