Created
January 27, 2019 23:08
-
-
Save selfup/21458b64fabdb0be8a59a89ac0e5cc67 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extern crate fut; | |
use fut::{open_file_as_string, write_file}; | |
fn main() { | |
let input = open_file_as_string("./fixtures/input.txt"); | |
let inputs = input.split(""); | |
let mut new_contents: Vec<String> = vec![]; | |
for char in inputs { | |
let formatted = format!("{}asdf", char); | |
new_contents.push(formatted); | |
} | |
let output = new_contents.join(""); | |
write_file(output, "./results/output.txt"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment