aboutsummaryrefslogtreecommitdiff
path: root/src/helper/init.rs
blob: 392e4fb41de94e0c1763eafa00c13e5840eec25f (plain)
1
2
3
4
5
6
7
8
9
10
11
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.