$ cargo build
Compiling foo v0.1.0 (/tmp/foo)
Finished dev [unoptimized + debuginfo] target(s) in 0.64s
$ echo -n "0123456789abcdef" > /tmp/file.txt
$ ./target/debug/foo
[0x00000000] 30 31 32 33 34 35 36 37 38 39 61 62 63 64 65 66
$ echo -n "0123456789abcdef0123456789abcdef" > /tmp/file.txt
$ ./target/debug/foo
[0x00000000] 30 31 32 33 34 35 36 37 38 39 61 62 63 64 65 66
[0x00000010] 30 31 32 33 34 35 36 37 38 39 61 62 63 64 65 66
$ echo -n "0123456789abcdef0123456789abcdef0123" > /tmp/file.txt
$ ./target/debug/foo
[0x00000000] 30 31 32 33 34 35 36 37 38 39 61 62 63 64 65 66
[0x00000010] 30 31 32 33 34 35 36 37 38 39 61 62 63 64 65 66
$ echo -n "0123456789abcdef0123456789abcdef0123" > /tmp/file.txt
$ ./target/debug/foo
[0x00000000] 30 31 32 33 34 35 36 37 38 39 61 62 63 64 65 66
[0x00000010] 30 31 32 33 34 35 36 37 38 39 61 62 63 64 65 66
[0x00000020] 30 31 32 33