/// Log for when stdout is taken.
Log for when stdout is taken.
Log for when stdout is taken .
pub fn log(text: &str) {
    let mut file = OpenOptions::new()
        .write(true)
        .append(true)
        .open("log.txt")
        .expect("Unable to open file");
    file.write_all(text.as_bytes())
        .expect("Failed to write file");
    file.write_all("\n".as_bytes())
        .expect("Failed to write file");
}
pub fn log ( text : & str ) { let mut file = OpenOptions :: new ( ) . write ( true ) . append ( true ) . open ( " " ) . expect ( " " ) ; file . write_all ( text . as_bytes ( ) ) . expect ( " " ) ; file . write_all ( " \n " . as_bytes ( ) ) . expect ( " " ) ; }
Log for when stdout is taken.
Log for when stdout is taken .
text
&str