Count Words and Lines in a Text File

Learn to count words and lines in a text file by getting input on the command-line interface.

We'll cover the following

Problem

Write a program that reads a file path from the command-line argument and counts the number of words and lines in that file.

Get hands-on with 1400+ tech skills courses.