iof 0.5.0

Read from and write data to console or file in simple formats.
Documentation
1
2
3
4
5
6
7
8
use iof::read_in_line_trimmed;

/// Reads two lines of strings from input, and checks if they are in reverse order.
fn main() {
    let a: String = read_in_line_trimmed();
    let b: String = read_in_line_trimmed();
    assert_eq!(a, b.chars().rev().collect::<String>());
}