A Simple wc


The following wc program demonstrates a simple version of the wc utility in Rust. It counts the lines, words, and bytes in a single file, and uses the clap crate to parse the -l, -w, and -c options.

This zip file contains the complete crate.

src/main.rs