Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
tibvdm committed Apr 15, 2024
1 parent 1ab7905 commit ad01004
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions fa-compression/src/main.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
use std::io::{stdin, stdout, BufRead, BufReader, BufWriter, Write};

pub fn main() {
let stdin = stdin();
let stdout = stdout();

let reader = BufReader::new(stdin.lock());
let mut writer = BufWriter::new(stdout.lock());

// Read line by line from stdin
for line in reader.lines() {
let line = line.unwrap();
let splitted_line = line.split("\t").collect::<Vec<&str>>();

writer.write_all(format!("{}\t{}\t{}\t{}\n", splitted_line[1], splitted_line[3], splitted_line[6], splitted_line[7]).as_bytes()).unwrap();
}
}

0 comments on commit ad01004

Please sign in to comment.