Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 661 Bytes

README.md

File metadata and controls

37 lines (25 loc) · 661 Bytes

Word Counter

Word Counter implementation in Rust.

Challenge

Usage

cargo run -- <flag> <filename>

or

cargo run <file>

Example

> cargo run src/test.txt

$ Finished dev [unoptimized + debuginfo] target(s) in 0.22s
     Running `target/debug/ccwc src/test.txt`
Total number of lines in the file are: 17
> cargo run -- -l src/test.txt

$ Compiling ccwc v0.1.0 (/Users/shantanu/Desktop/Rust/ccwc)
    Finished dev [unoptimized + debuginfo] target(s) in 0.93s
     Running `target/debug/ccwc -l src/test.txt`
Total number of lines in the file are: 17