Solution: Count Words and Lines in a Text File
Run the program from the command-line interface and test our implementation.
We'll cover the following
Solution
Type ruby main.rb file.txt
in the CMD to execute the following code:
Get hands-on with 1400+ tech skills courses.