Coding Challenges - wc tool
https://codingchallenges.fyi/challenges/challenge-wc
In this step your goal is to support being able to read from standard input if no filename is specified. If you’ve done it right your output should match this:
cat test.txt | ccwc -l
7137
- Define and Implement an object (Struct) to deal with user inputs.
- Methods to validate and send to the correct flow according to inputs.
- Use std::fs to check if file exists
- Define and Implement an object to deal with core flow
- file read
- buffer parse
- bytes count
- etc...
- Use modules to organize code