Skip to content

Instantly share code, notes, and snippets.

@selfup
Created January 27, 2019 23:08
Show Gist options
  • Save selfup/21458b64fabdb0be8a59a89ac0e5cc67 to your computer and use it in GitHub Desktop.
Save selfup/21458b64fabdb0be8a59a89ac0e5cc67 to your computer and use it in GitHub Desktop.
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