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:
Access this course and 1400+ top-rated courses and projects.