mod lib; fn main() { let source = lib::io::read_file_argv(); let mut compiled = String::new(); //do stuff with source and output to compiled compiled.push_str(source.as_str()); lib::io::write_file_argv(compiled); }